diff --git a/domain/section/gemini/gemini.go b/domain/section/gemini/gemini.go
index cdc99637..23c60444 100644
--- a/domain/section/gemini/gemini.go
+++ b/domain/section/gemini/gemini.go
@@ -157,7 +157,6 @@ func (p *Provider) Refresh(ctx *provider.Context, config, data string) (newData
func auth(ctx *provider.Context, store *store.Store, w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
body, err := ioutil.ReadAll(r.Body)
-
if err != nil {
provider.WriteMessage(w, "gemini", "Bad payload")
return
@@ -165,7 +164,6 @@ func auth(ctx *provider.Context, store *store.Store, w http.ResponseWriter, r *h
var config = geminiConfig{}
err = json.Unmarshal(body, &config)
-
if err != nil {
provider.WriteMessage(w, "gemini", "Bad payload")
return
@@ -177,30 +175,26 @@ func auth(ctx *provider.Context, store *store.Store, w http.ResponseWriter, r *h
provider.WriteMessage(w, "gemini", "Missing URL value")
return
}
-
if len(config.Username) == 0 {
provider.WriteMessage(w, "gemini", "Missing Username value")
return
}
-
if len(config.APIKey) == 0 {
provider.WriteMessage(w, "gemini", "Missing APIKey value")
return
}
creds := []byte(fmt.Sprintf("%s:%s", config.Username, config.APIKey))
-
req, err := http.NewRequest("GET", fmt.Sprintf("%s/api/users/username/%s", config.URL, config.Username), nil)
req.Header.Set("Authorization", "Basic "+base64.StdEncoding.EncodeToString(creds))
client := &http.Client{}
res, err := client.Do(req)
-
if err != nil {
provider.WriteError(w, "gemini", err)
+ fmt.Println(err)
return
}
-
if res.StatusCode != http.StatusOK {
provider.WriteForbidden(w)
return
@@ -213,9 +207,9 @@ func auth(ctx *provider.Context, store *store.Store, w http.ResponseWriter, r *h
dec := json.NewDecoder(res.Body)
err = dec.Decode(&g)
-
if err != nil {
provider.WriteError(w, "gemini", err)
+ fmt.Println(err)
return
}
diff --git a/gui/app/constants/constants.js b/gui/app/constants/constants.js
index 1242bda7..68a3b9fc 100644
--- a/gui/app/constants/constants.js
+++ b/gui/app/constants/constants.js
@@ -217,7 +217,8 @@ let constants = EmberObject.extend({
Category: 'dicon-flag',
Checkbox: 'dicon-shape-rectangle',
CheckboxChecked: 'dicon-i-check',
- Copy: 'dicon-single-copy-04',
+ Copy: 'dicon-copy',
+ Cross: 'dicon-i-remove',
Database: 'dicon-database',
Download: 'dicon-download',
Delete: 'dicon-bin',
@@ -227,9 +228,10 @@ let constants = EmberObject.extend({
Export2: 'dicon-upload',
Filter: 'dicon-sort-tool',
Grid1: 'dicon-grid-interface',
- Handshake: 'handshake',
+ Handshake: 'dicon-handshake',
Index: 'dicon-align-justify',
Integrations: 'dicon-geometry',
+ Link: 'dicon-link',
ListBullet: 'dicon-list-bullet-2',
Locked: 'dicon-lock',
NotAllowed: 'dicon-ban',
@@ -238,12 +240,17 @@ let constants = EmberObject.extend({
Plus: 'dicon-e-add',
Person: 'dicon-single-01',
People: 'dicon-multiple-19',
+ Preview: 'dicon-preview',
Remove: 'dicon-i-remove',
RemoveUser: 'dicon-delete-28',
Search: 'dicon-magnifier',
Send: 'dicon-send',
Settings: 'dicon-settings-gear',
Tag: 'dicon-delete-key',
+ TickSmall: 'dicon-d-check',
+ Tick: 'dicon-check',
+ TickSingle: 'dicon-check-single',
+ TickDouble: 'dicon-check-double',
TimeBack: 'dicon-time',
TriangleSmallUp: 'dicon-small-triangle-up',
TriangleSmallDown: 'dicon-small-triangle-down',
@@ -263,6 +270,7 @@ let constants = EmberObject.extend({
Label: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
Add: 'Add',
Activate: "Activate",
+ Authenticate: 'Authenticate',
Cancel: 'Cancel',
Close: 'Close',
Delete: 'Delete',
diff --git a/gui/app/pods/document/section/template.hbs b/gui/app/pods/document/section/template.hbs
index cb420a84..1bd42bef 100644
--- a/gui/app/pods/document/section/template.hbs
+++ b/gui/app/pods/document/section/template.hbs
@@ -1,25 +1,14 @@
-{{#layout/top-bar}}
-
- {{#link-to "folder.index" model.folder.id model.folder.slug class="link"}}
- {{model.folder.name}}
- {{/link-to}}
-
-
- {{#link-to "document.index" model.folder.id model.folder.slug model.document.id model.document.slug class="link selected"}}
- {{model.document.name}}
- {{/link-to}}
-
-{{/layout/top-bar}}
+{{#layout/master-sidebar}}
+ {{ui/ui-spacer size=300}}
-
-
-
-
- {{document/document-editor document=model.document folder=model.folder page=model.page meta=model.meta onCancel=(action "onCancel") onAction=(action "onAction")}}
-
-
+
+ {{#link-to "document.index" model.folder.id model.folder.slug model.document.id model.document.slug}}
+ {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.ArrowLeft label="Document"}}
+ {{/link-to}}
-
+{{/layout/master-sidebar}}
-{{#layout/bottom-bar}}
-{{/layout/bottom-bar}}
\ No newline at end of file
+{{#layout/master-content}}
+ {{document/document-editor document=model.document folder=model.folder page=model.page meta=model.meta
+ onCancel=(action "onCancel") onAction=(action "onAction")}}
+{{/layout/master-content}}
diff --git a/gui/app/styles/core/icon.scss b/gui/app/styles/core/icon.scss
index e32da72a..d97f1dd9 100644
--- a/gui/app/styles/core/icon.scss
+++ b/gui/app/styles/core/icon.scss
@@ -379,7 +379,7 @@ icons
content: "\ea42";
}
- .dicon-single-copy-04::before {
+ .dicon-copy::before {
content: "\ea43";
}
@@ -438,3 +438,27 @@ icons
.dicon-ban::before {
content: "\ea53";
}
+
+ .dicon-check-single::before {
+ content: "\ea54";
+ }
+
+ .dicon-check-double::before {
+ content: "\ea55";
+ }
+
+ .dicon-check::before {
+ content: "\ea56";
+ }
+
+ .dicon-d-check::before {
+ content: "\ea57";
+ }
+
+ .dicon-preview::before {
+ content: "\ea58";
+ }
+
+ .dicon-link::before {
+ content: "\ea59";
+ }
diff --git a/gui/app/styles/core/layout/grid.scss b/gui/app/styles/core/layout/grid.scss
index 3bcedaa8..e99137e5 100644
--- a/gui/app/styles/core/layout/grid.scss
+++ b/gui/app/styles/core/layout/grid.scss
@@ -25,6 +25,10 @@ $display-break-5: 1800px;
justify-self: self-start;
}
+ .grid-cell-width-100 {
+ width: 100%;
+ }
+
// X-axis alignment
.grid-cell-left {
justify-self: self-end;
diff --git a/gui/app/styles/core/view/document/section-editor.scss b/gui/app/styles/core/view/document/section-editor.scss
index 559e170e..b283bcdf 100644
--- a/gui/app/styles/core/view/document/section-editor.scss
+++ b/gui/app/styles/core/view/document/section-editor.scss
@@ -1,12 +1,8 @@
.section-editor {
- > .edit-title {
- margin: 16px 0;
- }
-
> .canvas {
- // margin: 34px 0 0 0;
padding: 30px 20px;
box-shadow: 0 0 0 0.75pt map-get($gray-shades, 200),0 0 3pt 0.75pt map-get($gray-shades, 200);
+ border: 1px solid map-get($gray-shades, 200);
}
}
diff --git a/gui/app/templates/components/section/airtable/type-editor.hbs b/gui/app/templates/components/section/airtable/type-editor.hbs
index 74bb0130..f20cf253 100644
--- a/gui/app/templates/components/section/airtable/type-editor.hbs
+++ b/gui/app/templates/components/section/airtable/type-editor.hbs
@@ -1,3 +1,8 @@
+{{layout/logo-heading
+ title="Airtable"
+ desc="Part spreadsheet, part database, and entirely flexible (https://airtable.com)"
+ icon=constants.Icon.Integrations}}
+
{{#section/base-editor document=document folder=folder page=page isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
diff --git a/gui/app/templates/components/section/base-editor.hbs b/gui/app/templates/components/section/base-editor.hbs
index e3798186..727714e0 100644
--- a/gui/app/templates/components/section/base-editor.hbs
+++ b/gui/app/templates/components/section/base-editor.hbs
@@ -1,32 +1,29 @@
-
-
-
+
+
+
- {{focus-input type="text" id="page-title" value=page.title class=(if hasNameError "form-control mousetrap form-control-lg edit-title is-invalid" "form-control form-control-lg edit-title mousetrap") placeholder="Enter name"}}
+ {{focus-input type="text" id="page-title" value=page.title class=(if hasNameError "form-control mousetrap form-control-lg is-invalid" "form-control form-control-lg mousetrap") placeholder="Enter name"}}
{{#if hasExcerpt}}
- {{textarea id="page-excerpt" value=page.excerpt rows="2" class=(if hasDescError "form-control mousetrap form-control-lg edit-title is-invalid" "form-control form-control-lg edit-title mousetrap") placeholder="Enter description"}}
+ {{textarea id="page-excerpt" value=page.excerpt rows="2" class=(if hasDescError "form-control mousetrap form-control-lg is-invalid" "form-control form-control-lg mousetrap") placeholder="Enter description"}}
{{/if}}
-
-
-
- {{#if busy}}
-

- {{/if}}
-
-
{{actionLabel}}
-
{{cancelLabel}}
-
-
-
+
+ {{#if busy}}
+

+ {{/if}}
+ {{ui/ui-button color=constants.Color.Gray light=true label=cancelLabel onClick=(action "onCancel")}}
+ {{ui/ui-button-gap}}
+ {{ui/ui-button color=constants.Color.Green light=true label=actionLabel onClick=(action "onAction")}}
+
+
+
+
@@ -38,8 +35,8 @@
You have made changes - continue editing or discard changes?
diff --git a/gui/app/templates/components/section/flowchart/type-editor.hbs b/gui/app/templates/components/section/flowchart/type-editor.hbs
index 3dce12a0..271ea7ef 100644
--- a/gui/app/templates/components/section/flowchart/type-editor.hbs
+++ b/gui/app/templates/components/section/flowchart/type-editor.hbs
@@ -1,14 +1,13 @@
-{{#section/base-editor document=document folder=folder page=page busy=waiting tip="Concise name that describes the diagram" isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
+{{layout/logo-heading
+ title="Draw.io"
+ desc="For making flowcharts, process diagrams, org charts, UML, ER diagrams, network diagrams and much more (https://about.draw.io)"
+ icon=constants.Icon.Integrations}}
+
+{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
{{/section/base-editor}}
diff --git a/gui/app/templates/components/section/gemini/type-editor.hbs b/gui/app/templates/components/section/gemini/type-editor.hbs
index 8b4f411c..40c754c3 100644
--- a/gui/app/templates/components/section/gemini/type-editor.hbs
+++ b/gui/app/templates/components/section/gemini/type-editor.hbs
@@ -1,43 +1,45 @@
-{{#section/base-editor document=document folder=folder page=page busy=waiting tip="Gemini enterprise issue and ticketing software (https://www.countersoft.com)" isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
+{{layout/logo-heading
+ title="Gemini"
+ desc="Gemini enterprise issue and ticketing software (https://www.countersoft.com)"
+ icon=constants.Icon.Integrations}}
-
-
-
-
- {{focus-input id="gemini-url" type="text" value=config.url class="form-control"}}
- e.g. http://helpdesk.countersoft.com
-
-
-
- {{input id="gemini-username" type="text" value=config.username class="form-control"}}
- Gemini Username
-
-
-
- {{input id="gemini-apikey" type="password" value=config.APIKey class="form-control"}}
- Gemini user API key (from user profile)
-
-
Authenticate
-
-
-
- {{#if authenticated}}
+{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
+
+
- {{/if}}
+
+
+ {{input id="gemini-username" type="text" value=config.username class="form-control"}}
+ Gemini Username
+
+
+
+ {{input id="gemini-apikey" type="password" value=config.APIKey class="form-control"}}
+ Gemini user API key (from user profile)
+
+ {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Authenticate onClick=(action "auth")}}
+
+
+ {{#if authenticated}}
+
+ {{/if}}
+
-
-
{{/section/base-editor}}
diff --git a/gui/app/templates/components/section/jira/type-editor.hbs b/gui/app/templates/components/section/jira/type-editor.hbs
index 5fd4098d..3b765fc0 100644
--- a/gui/app/templates/components/section/jira/type-editor.hbs
+++ b/gui/app/templates/components/section/jira/type-editor.hbs
@@ -1,39 +1,32 @@
-{{#section/base-editor document=document folder=folder page=page busy=waiting tip="Jira issue tracking" isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
+{{layout/logo-heading
+ title="Jira Software"
+ desc="Jira provides issue tracking and agile software"
+ icon=constants.Icon.Integrations}}
-
-
- {{#if session.isAdmin}}
- {{#link-to "customize.integrations" class="btn btn-outline-secondary bold-700"}}
- Configure Jira Connector
- {{/link-to}}
- {{else}}
- {{#unless authenticated}}
-
Your Documize administrator needs to provide Jira connection details before usage.
- {{/unless}}
- {{/if}}
-
-
-{{#if authenticated}}
-
-
-
-{{else}}
-
Jira connector not authenticated
-{{/if}}
+{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
+ {{#if session.isAdmin}}
+ {{#link-to "customize.integrations"}}
+ {{ui/ui-button color=constants.Color.Green light=true label="Configure Jira Connector"}}
+ {{/link-to}}
+ {{else}}
+ {{#unless authenticated}}
+
Your Documize administrator needs to provide Jira connection details before usage.
+ {{/unless}}
+ {{/if}}
+ {{#if authenticated}}
+
+ {{ui/ui-spacer size=300}}
+ {{{issuesGrid}}}
+ {{else}}
+ {{ui/ui-spacer size=300}}
+
Jira connector not authenticated
+ {{/if}}
{{/section/base-editor}}
diff --git a/gui/app/templates/components/section/papertrail/type-editor.hbs b/gui/app/templates/components/section/papertrail/type-editor.hbs
index 573c2806..dcca381b 100644
--- a/gui/app/templates/components/section/papertrail/type-editor.hbs
+++ b/gui/app/templates/components/section/papertrail/type-editor.hbs
@@ -1,44 +1,49 @@
-{{#section/base-editor document=document folder=folder page=page busy=waiting tip="Papertrail cloud logging service (https://papertrailapp.com)" isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
+{{layout/logo-heading
+ title="Papertrail"
+ desc="Display your cloud-based logs (https://papertrailapp.com)"
+ icon=constants.Icon.Integrations}}
-
-
+{{#section/base-editor document=document folder=folder page=page busy=waiting
+ isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
- {{#if authenticated}}
-