mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
parent
9f4715a494
commit
bbed3e5a08
11 changed files with 770 additions and 766 deletions
|
@ -54,9 +54,9 @@ Integrations for embedding SaaS data within documents, zero add-on/marketplace f
|
|||
|
||||
## Latest Release
|
||||
|
||||
[Community Edition: v2.0.2](https://github.com/documize/community/releases)
|
||||
[Community Edition: v2.0.3](https://github.com/documize/community/releases)
|
||||
|
||||
[Enterprise Edition: v2.0.2](https://documize.com/downloads)
|
||||
[Enterprise Edition: v2.0.3](https://documize.com/downloads)
|
||||
|
||||
## OS support
|
||||
|
||||
|
|
|
@ -35,14 +35,15 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/documize/community/core/request"
|
||||
"github.com/documize/community/model/audit"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/documize/community/core/request"
|
||||
"github.com/documize/community/model/audit"
|
||||
|
||||
"github.com/documize/community/core/env"
|
||||
"github.com/documize/community/core/response"
|
||||
"github.com/documize/community/core/streamutil"
|
||||
|
|
|
@ -95,7 +95,7 @@ type Product struct {
|
|||
Major string
|
||||
Minor string
|
||||
Patch string
|
||||
Revision int
|
||||
Revision string
|
||||
|
||||
// UserCount is number of users within Documize instance by tenant.
|
||||
UserCount map[string]int
|
||||
|
|
|
@ -41,8 +41,8 @@ func main() {
|
|||
rt.Product = domain.Product{}
|
||||
rt.Product.Major = "2"
|
||||
rt.Product.Minor = "0"
|
||||
rt.Product.Patch = "2"
|
||||
rt.Product.Revision = 190205110701
|
||||
rt.Product.Patch = "3"
|
||||
rt.Product.Revision = "190210120245"
|
||||
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
|
||||
rt.Product.Edition = domain.CommunityEdition
|
||||
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)
|
||||
|
|
1444
embed/bindata.go
1444
embed/bindata.go
File diff suppressed because one or more lines are too long
|
@ -46,7 +46,11 @@ export default Component.extend(Modals, Notifier, {
|
|||
let url = this.get('appMeta.endpoint');
|
||||
let uploadUrl = `${url}/documents/${documentId}/attachments`;
|
||||
|
||||
let dzone = new Dropzone("#upload-document-files > div", {
|
||||
|
||||
// Handle upload clicks on button and anything inside that button.
|
||||
let sel = ['#upload-document-files ', '#upload-document-files > div'];
|
||||
for (var i=0; i < 2; i++) {
|
||||
let dzone = new Dropzone(sel[i], {
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + self.get('session.authToken')
|
||||
},
|
||||
|
@ -82,8 +86,7 @@ export default Component.extend(Modals, Notifier, {
|
|||
dzone.on("complete", function (file) {
|
||||
dzone.removeFile(file);
|
||||
});
|
||||
|
||||
this.set('drop', dzone);
|
||||
}
|
||||
|
||||
// For authenticated users we send server auth token.
|
||||
let qry = '';
|
||||
|
|
|
@ -27,7 +27,7 @@ export default Service.extend({
|
|||
orgId: '',
|
||||
title: '',
|
||||
version: '',
|
||||
revision: 1000,
|
||||
revision: '1000',
|
||||
message: '',
|
||||
edition: 'Community',
|
||||
valid: true,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "documize",
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.3",
|
||||
"description": "The Document IDE",
|
||||
"repository": "",
|
||||
"license": "AGPL",
|
||||
|
|
|
@ -40,7 +40,7 @@ type Manifest struct {
|
|||
Major string `json:"major"`
|
||||
Minor string `json:"minor"`
|
||||
Patch string `json:"patch"`
|
||||
Revision int `json:"revision"`
|
||||
Revision string `json:"revision"`
|
||||
Version string `json:"version"`
|
||||
|
||||
// Database provider used by source system.
|
||||
|
|
|
@ -37,7 +37,7 @@ type SiteMeta struct {
|
|||
AuthProvider string `json:"authProvider"`
|
||||
AuthConfig string `json:"authConfig"`
|
||||
Version string `json:"version"`
|
||||
Revision int `json:"revision"`
|
||||
Revision string `json:"revision"`
|
||||
MaxTags int `json:"maxTags"`
|
||||
Edition domain.Edition `json:"edition"`
|
||||
ConversionEndpoint string `json:"conversionEndpoint"`
|
||||
|
|
|
@ -30,7 +30,7 @@ var testHost string // used during automated testing
|
|||
|
||||
// Start router to handle all HTTP traffic.
|
||||
func Start(rt *env.Runtime, s *store.Store, ready chan struct{}) {
|
||||
rt.Log.Info(fmt.Sprintf("Product: %s version %s (build %d)", rt.Product.Title, rt.Product.Version, rt.Product.Revision))
|
||||
rt.Log.Info(fmt.Sprintf("Product: %s version %s (build %s)", rt.Product.Title, rt.Product.Version, rt.Product.Revision))
|
||||
|
||||
// decide which mode to serve up
|
||||
switch rt.Flags.SiteMode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue