1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Chaneg build number data type to string

Fixes #198
This commit is contained in:
Harvey Kandola 2019-02-10 13:12:17 +00:00
parent 9f4715a494
commit bbed3e5a08
11 changed files with 770 additions and 766 deletions

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -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)

File diff suppressed because one or more lines are too long

View file

@ -46,44 +46,47 @@ 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", {
headers: {
'Authorization': 'Bearer ' + self.get('session.authToken')
},
url: uploadUrl,
method: "post",
paramName: 'attachment',
clickable: true,
maxFilesize: 50,
parallelUploads: 5,
uploadMultiple: false,
addRemoveLinks: false,
autoProcessQueue: true,
init: function () {
this.on("success", function (/*file, response*/ ) {
});
// 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')
},
url: uploadUrl,
method: "post",
paramName: 'attachment',
clickable: true,
maxFilesize: 50,
parallelUploads: 5,
uploadMultiple: false,
addRemoveLinks: false,
autoProcessQueue: true,
this.on("queuecomplete", function () {
self.notifySuccess('Uploaded file');
self.getAttachments();
});
init: function () {
this.on("success", function (/*file, response*/ ) {
});
this.on("addedfile", function ( /*file*/ ) {
});
this.on("queuecomplete", function () {
self.notifySuccess('Uploaded file');
self.getAttachments();
});
this.on("error", function (error, msg) {
self.notifyError(msg);
self.notifyError(error);
});
}
});
this.on("addedfile", function ( /*file*/ ) {
});
dzone.on("complete", function (file) {
dzone.removeFile(file);
});
this.on("error", function (error, msg) {
self.notifyError(msg);
self.notifyError(error);
});
}
});
this.set('drop', dzone);
dzone.on("complete", function (file) {
dzone.removeFile(file);
});
}
// For authenticated users we send server auth token.
let qry = '';

View file

@ -27,7 +27,7 @@ export default Service.extend({
orgId: '',
title: '',
version: '',
revision: 1000,
revision: '1000',
message: '',
edition: 'Community',
valid: true,

View file

@ -1,6 +1,6 @@
{
"name": "documize",
"version": "2.0.2",
"version": "2.0.3",
"description": "The Document IDE",
"repository": "",
"license": "AGPL",

View file

@ -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.

View file

@ -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"`

View file

@ -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 {