mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29:42 +02:00
manifest.json
This commit is contained in:
parent
557da2847e
commit
9e20a5f085
11 changed files with 804 additions and 637 deletions
1
build.sh
1
build.sh
|
@ -17,6 +17,7 @@ cp -r gui/dist-prod/tinymce embed/bindata/public/tinymce
|
||||||
cp -r gui/dist-prod/sections embed/bindata/public/sections
|
cp -r gui/dist-prod/sections embed/bindata/public/sections
|
||||||
cp gui/dist-prod/*.* embed/bindata
|
cp gui/dist-prod/*.* embed/bindata
|
||||||
cp gui/dist-prod/favicon.ico embed/bindata/public
|
cp gui/dist-prod/favicon.ico embed/bindata/public
|
||||||
|
cp gui/dist-prod/manifest.json embed/bindata/public
|
||||||
rm -rf embed/bindata/mail
|
rm -rf embed/bindata/mail
|
||||||
mkdir -p embed/bindata/mail
|
mkdir -p embed/bindata/mail
|
||||||
cp domain/mail/*.html embed/bindata/mail
|
cp domain/mail/*.html embed/bindata/mail
|
||||||
|
|
|
@ -13,6 +13,7 @@ package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/documize/community/core/env"
|
"github.com/documize/community/core/env"
|
||||||
|
@ -85,10 +86,10 @@ func (s Scope) GetUser(orgID, userID, area, path string) (value string) {
|
||||||
path = "." + path
|
path = "." + path
|
||||||
}
|
}
|
||||||
|
|
||||||
sql := "SELECT JSON_EXTRACT(`config`,'$" + path + "') FROM `userconfig` WHERE `key` = '" + area +
|
qry := "SELECT JSON_EXTRACT(`config`,'$" + path + "') FROM `userconfig` WHERE `key` = '" + area +
|
||||||
"' AND `orgid` = '" + orgID + "' AND `userid` = '" + userID + "';"
|
"' AND `orgid` = '" + orgID + "' AND `userid` = '" + userID + "';"
|
||||||
|
|
||||||
stmt, err := s.Runtime.Db.Preparex(sql)
|
stmt, err := s.Runtime.Db.Preparex(qry)
|
||||||
defer streamutil.Close(stmt)
|
defer streamutil.Close(stmt)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -98,7 +99,7 @@ func (s Scope) GetUser(orgID, userID, area, path string) (value string) {
|
||||||
var item = make([]uint8, 0)
|
var item = make([]uint8, 0)
|
||||||
|
|
||||||
err = stmt.Get(&item)
|
err = stmt.Get(&item)
|
||||||
if err != nil {
|
if err != nil && err != sql.ErrNoRows {
|
||||||
s.Runtime.Log.Error(fmt.Sprintf("setting.GetUser for user %s %s %s", userID, area, path), err)
|
s.Runtime.Log.Error(fmt.Sprintf("setting.GetUser for user %s %s %s", userID, area, path), err)
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -10,6 +10,7 @@
|
||||||
<meta name="author" content="Documize" />
|
<meta name="author" content="Documize" />
|
||||||
<meta name="description" content="Documize">
|
<meta name="description" content="Documize">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
|
<link rel="manifest" href="/manifest.json">
|
||||||
<link rel="shortcut icon" href="/favicon.ico?v=1.1" />
|
<link rel="shortcut icon" href="/favicon.ico?v=1.1" />
|
||||||
<link rel="icon" type="image/png" href="/favicon-32x32.png?v=1.1" sizes="32x32" />
|
<link rel="icon" type="image/png" href="/favicon-32x32.png?v=1.1" sizes="32x32" />
|
||||||
<link rel="stylesheet" href="/assets/vendor.css">
|
<link rel="stylesheet" href="/assets/vendor.css">
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
// refresh data if copied to same document
|
// refresh data if copied to same document
|
||||||
if (documentId === targetDocumentId) {
|
if (documentId === targetDocumentId) {
|
||||||
this.set('pageId', '');
|
this.set('pageId', '');
|
||||||
this.get('target.router').refresh();
|
this.get('target._routerMicrolib').refresh();
|
||||||
|
|
||||||
this.get('linkService').getDocumentLinks(this.get('model.document.id')).then((links) => {
|
this.get('linkService').getDocumentLinks(this.get('model.document.id')).then((links) => {
|
||||||
this.set('model.links', links);
|
this.set('model.links', links);
|
||||||
|
@ -117,7 +117,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set('model.pages', _.sortBy(pages, "sequence"));
|
this.set('model.pages', _.sortBy(pages, "sequence"));
|
||||||
this.get('target.router').refresh();
|
this.get('target._routerMicrolib').refresh();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// page delete followed by re-leveling child pages
|
// page delete followed by re-leveling child pages
|
||||||
|
@ -198,7 +198,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.set('model.pages', this.get('model.pages').sortBy('sequence'));
|
this.set('model.pages', this.get('model.pages').sortBy('sequence'));
|
||||||
this.get('target.router').refresh();
|
this.get('target._routerMicrolib').refresh();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
pages = pages.sortBy('sequence');
|
pages = pages.sortBy('sequence');
|
||||||
this.set('model.pages', []);
|
this.set('model.pages', []);
|
||||||
this.set('model.pages', pages);
|
this.set('model.pages', pages);
|
||||||
this.get('target.router').refresh();
|
this.get('target._routerMicrolib').refresh();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
doc.set('folderId', folder);
|
doc.set('folderId', folder);
|
||||||
doc.set('selected', !doc.get('selected'));
|
doc.set('selected', !doc.get('selected'));
|
||||||
self.get('documentService').save(doc).then(function () {
|
self.get('documentService').save(doc).then(function () {
|
||||||
self.get('target.router').refresh();
|
self.get('target._routerMicrolib').refresh();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -52,7 +52,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
|
|
||||||
documents.forEach(function (document) {
|
documents.forEach(function (document) {
|
||||||
self.get('documentService').deleteDocument(document).then(function () {
|
self.get('documentService').deleteDocument(document).then(function () {
|
||||||
self.get('target.router').refresh();
|
self.get('target._routerMicrolib').refresh();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
},
|
},
|
||||||
|
|
||||||
onImport() {
|
onImport() {
|
||||||
this.get('target.router').refresh();
|
this.get('target._routerMicrolib').refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
BIN
gui/public/assets/img/icon-white-1024x1024.png
Normal file
BIN
gui/public/assets/img/icon-white-1024x1024.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
gui/public/assets/img/icon-white-128x128.png
Normal file
BIN
gui/public/assets/img/icon-white-128x128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
gui/public/assets/img/icon-white-256x256.png
Normal file
BIN
gui/public/assets/img/icon-white-256x256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
gui/public/assets/img/icon-white-64x64.png
Normal file
BIN
gui/public/assets/img/icon-white-64x64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
26
gui/public/manifest.json
Normal file
26
gui/public/manifest.json
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"name": "Documize",
|
||||||
|
"short_name": "Documize",
|
||||||
|
"display": "standalone",
|
||||||
|
"background_color": "#2667af",
|
||||||
|
"theme_color": "#2667af",
|
||||||
|
"description": "Organized documents",
|
||||||
|
"start_url": "/?utm_source=homescreen",
|
||||||
|
"icons": [{
|
||||||
|
"src": "assets/img/icon-white-64x64.png",
|
||||||
|
"sizes": "64x64",
|
||||||
|
"type": "image/png"
|
||||||
|
}, {
|
||||||
|
"src": "assets/img/icon-white-128x128.png",
|
||||||
|
"sizes": "128x128",
|
||||||
|
"type": "image/png"
|
||||||
|
}, {
|
||||||
|
"src": "assets/img/icon-white-256x256.png",
|
||||||
|
"sizes": "256x256",
|
||||||
|
"type": "image/png"
|
||||||
|
}, {
|
||||||
|
"src": "assets/img/icon-white-1024x1024.png",
|
||||||
|
"sizes": "1024x1024",
|
||||||
|
"type": "image/png"
|
||||||
|
}]
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue