mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Update README.md with latest version numbers
This commit is contained in:
parent
ad4030bc17
commit
30315a36c7
7 changed files with 680 additions and 663 deletions
|
@ -52,9 +52,9 @@ Space view.
|
||||||
|
|
||||||
## Latest version
|
## Latest version
|
||||||
|
|
||||||
[Community edition: v1.59.0](https://github.com/documize/community/releases)
|
[Community edition: v1.59.2](https://github.com/documize/community/releases)
|
||||||
|
|
||||||
[Enterprise edition: v1.61.0](https://documize.com/downloads)
|
[Enterprise edition: v1.61.2](https://documize.com/downloads)
|
||||||
|
|
||||||
## OS support
|
## OS support
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ import (
|
||||||
"github.com/documize/community/domain"
|
"github.com/documize/community/domain"
|
||||||
"github.com/documize/community/domain/conversion/store"
|
"github.com/documize/community/domain/conversion/store"
|
||||||
"github.com/documize/community/domain/permission"
|
"github.com/documize/community/domain/permission"
|
||||||
|
indexer "github.com/documize/community/domain/search"
|
||||||
"github.com/documize/community/model/activity"
|
"github.com/documize/community/model/activity"
|
||||||
"github.com/documize/community/model/attachment"
|
"github.com/documize/community/model/attachment"
|
||||||
"github.com/documize/community/model/audit"
|
"github.com/documize/community/model/audit"
|
||||||
|
@ -143,7 +144,7 @@ func (h *Handler) convert(w http.ResponseWriter, r *http.Request, job, folderID
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
nd, err := processDocument(ctx, h.Runtime, h.Store, filename, job, folderID, fileResult)
|
nd, err := processDocument(ctx, h.Runtime, h.Store, h.Indexer, filename, job, folderID, fileResult)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Transaction.Rollback()
|
ctx.Transaction.Rollback()
|
||||||
response.WriteServerError(w, method, err)
|
response.WriteServerError(w, method, err)
|
||||||
|
@ -157,7 +158,7 @@ func (h *Handler) convert(w http.ResponseWriter, r *http.Request, job, folderID
|
||||||
response.WriteJSON(w, nd)
|
response.WriteJSON(w, nd)
|
||||||
}
|
}
|
||||||
|
|
||||||
func processDocument(ctx domain.RequestContext, r *env.Runtime, store *domain.Store, filename, job, folderID string, fileResult *api.DocumentConversionResponse) (newDocument doc.Document, err error) {
|
func processDocument(ctx domain.RequestContext, r *env.Runtime, store *domain.Store, indexer indexer.Indexer, filename, job, folderID string, fileResult *api.DocumentConversionResponse) (newDocument doc.Document, err error) {
|
||||||
// Convert into database objects
|
// Convert into database objects
|
||||||
document := convertFileResult(filename, fileResult)
|
document := convertFileResult(filename, fileResult)
|
||||||
document.Job = job
|
document.Job = job
|
||||||
|
@ -203,8 +204,13 @@ func processDocument(ctx domain.RequestContext, r *env.Runtime, store *domain.St
|
||||||
err = errors.Wrap(err, "cannot insert new page for new document")
|
err = errors.Wrap(err, "cannot insert new page for new document")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// pp, _ := store.Page.Get(ctx, pageID)
|
||||||
|
go indexer.IndexContent(ctx, p)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
da := []attachment.Attachment{}
|
||||||
|
|
||||||
for _, e := range fileResult.EmbeddedFiles {
|
for _, e := range fileResult.EmbeddedFiles {
|
||||||
//fmt.Println("DEBUG embedded file info", document.OrgId, document.Job, e.Name, len(e.Data), e.ID)
|
//fmt.Println("DEBUG embedded file info", document.OrgId, document.Job, e.Name, len(e.Data), e.ID)
|
||||||
var a attachment.Attachment
|
var a attachment.Attachment
|
||||||
|
@ -222,6 +228,8 @@ func processDocument(ctx domain.RequestContext, r *env.Runtime, store *domain.St
|
||||||
err = errors.Wrap(err, "cannot insert attachment for new document")
|
err = errors.Wrap(err, "cannot insert attachment for new document")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
da = append(da, a)
|
||||||
}
|
}
|
||||||
|
|
||||||
store.Activity.RecordUserActivity(ctx, activity.UserActivity{
|
store.Activity.RecordUserActivity(ctx, activity.UserActivity{
|
||||||
|
@ -244,6 +252,8 @@ func processDocument(ctx domain.RequestContext, r *env.Runtime, store *domain.St
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
indexer.IndexDocument(ctx, newDocument, da)
|
||||||
|
|
||||||
store.Audit.Record(ctx, audit.EventTypeDocumentUpload)
|
store.Audit.Record(ctx, audit.EventTypeDocumentUpload)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
|
@ -42,7 +42,7 @@ func main() {
|
||||||
rt.Product = env.ProdInfo{}
|
rt.Product = env.ProdInfo{}
|
||||||
rt.Product.Major = "1"
|
rt.Product.Major = "1"
|
||||||
rt.Product.Minor = "59"
|
rt.Product.Minor = "59"
|
||||||
rt.Product.Patch = "1"
|
rt.Product.Patch = "2"
|
||||||
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
|
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
|
||||||
rt.Product.Edition = "Community"
|
rt.Product.Edition = "Community"
|
||||||
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)
|
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -78,7 +78,7 @@ export default Component.extend(TooltipMixin, {
|
||||||
|
|
||||||
setSize() {
|
setSize() {
|
||||||
schedule('afterRender', () => {
|
schedule('afterRender', () => {
|
||||||
let isDesktop = $(window).width() >= 1600;
|
let isDesktop = $(window).width() >= 1800;
|
||||||
this.set('isDesktop', isDesktop);
|
this.set('isDesktop', isDesktop);
|
||||||
|
|
||||||
if (isDesktop) {
|
if (isDesktop) {
|
||||||
|
|
|
@ -105,8 +105,11 @@ export default Component.extend(ModalMixin, {
|
||||||
|
|
||||||
onShowWhatsNewModal() {
|
onShowWhatsNewModal() {
|
||||||
this.modalOpen("#whats-new-modal", { "show": true });
|
this.modalOpen("#whats-new-modal", { "show": true });
|
||||||
this.get('session').seenNewVersion();
|
|
||||||
this.set('hasWhatsNew', false);
|
if (this.get('newsContent.length') > 0) {
|
||||||
|
this.get('session').seenNewVersion();
|
||||||
|
this.set('hasWhatsNew', false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,11 +10,15 @@
|
||||||
// https://documize.com
|
// https://documize.com
|
||||||
|
|
||||||
|
|
||||||
// theme
|
// theme blue
|
||||||
$color-primary: #176091;
|
$color-primary: #176091;
|
||||||
$color-primary-light: #E6F1F8;
|
$color-primary-light: #E6F1F8;
|
||||||
$color-link: #348A37;
|
$color-link: #348A37;
|
||||||
|
|
||||||
|
// theme purple
|
||||||
|
// $color-primary: #280A42;
|
||||||
|
// $color-primary-light: #F7F2FF;
|
||||||
|
|
||||||
// black, white
|
// black, white
|
||||||
$color-black: #000000;
|
$color-black: #000000;
|
||||||
$color-off-black: #111111;
|
$color-off-black: #111111;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue