mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
empt state done!
This commit is contained in:
parent
ba0ae04df0
commit
90d377d8bb
6 changed files with 82 additions and 3 deletions
|
@ -35,6 +35,11 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
children: false
|
children: false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
noSections: Ember.computed('pages', function() {
|
||||||
|
console.log(this.get('pages.length'));
|
||||||
|
return this.get('pages.length') === 1;
|
||||||
|
}),
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
|
||||||
|
|
|
@ -65,11 +65,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
> .pages {
|
> .pages {
|
||||||
|
|
||||||
> .wysiwyg {
|
> .wysiwyg {
|
||||||
|
|
||||||
> .is-a-page {
|
> .is-a-page {
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
|
|
||||||
> .page-toolbar {
|
> .page-toolbar {
|
||||||
|
@ -92,3 +89,27 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-sections {
|
||||||
|
text-align: center;
|
||||||
|
opacity: 0.7;
|
||||||
|
|
||||||
|
> .box {
|
||||||
|
padding: 35px;
|
||||||
|
width: 300px;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 20px;
|
||||||
|
|
||||||
|
> .message {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $color-gray;
|
||||||
|
margin-top: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .regular-button {
|
||||||
|
cursor: default !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,3 +149,27 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 2rem 0;
|
margin: 2rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-documents {
|
||||||
|
margin-top: 100px;
|
||||||
|
text-align: center;
|
||||||
|
opacity: 0.7;
|
||||||
|
|
||||||
|
> .box {
|
||||||
|
padding: 35px;
|
||||||
|
width: 300px;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 20px;
|
||||||
|
|
||||||
|
> .message {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $color-gray;
|
||||||
|
margin-top: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .regular-button {
|
||||||
|
cursor: default !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -80,3 +80,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{#if noSections}}
|
||||||
|
<div class="no-sections">
|
||||||
|
<div class="box">
|
||||||
|
<div class="regular-button button-transparent">
|
||||||
|
<i class="material-icons">add</i>
|
||||||
|
<div class="name">section</div>
|
||||||
|
</div>
|
||||||
|
<div class="message">Add a new section<br/>to this document</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
|
@ -63,4 +63,21 @@
|
||||||
|
|
||||||
{{#if hasDocuments}}
|
{{#if hasDocuments}}
|
||||||
{{folder/documents-list documents=documents folder=folder isFolderOwner=isFolderOwner onDocumentsChecked=(action 'onDocumentsChecked') }}
|
{{folder/documents-list documents=documents folder=folder isFolderOwner=isFolderOwner onDocumentsChecked=(action 'onDocumentsChecked') }}
|
||||||
|
{{else}}
|
||||||
|
<div class="no-documents">
|
||||||
|
<div class="box">
|
||||||
|
<div class="regular-button button-transparent">
|
||||||
|
<i class="material-icons">add</i>
|
||||||
|
<div class="name">space</div>
|
||||||
|
</div>
|
||||||
|
<div class="message">Create a new space for<br/>all your documentation</div>
|
||||||
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="regular-button button-transparent">
|
||||||
|
<i class="material-icons">add</i>
|
||||||
|
<div class="name">document</div>
|
||||||
|
</div>
|
||||||
|
<div class="message">Start a new document or <br/>import .doc .docx, .txt .md files</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -264,3 +264,4 @@ INSERT INTO `config` VALUES ('FILEPLUGINS',
|
||||||
'[{\"Comment\": \"Disable (or not) built-in html import (NOTE: no Plugin name)\",\"Disabled\": false,\"API\": \"Convert\",\"Actions\": [\"htm\",\"html\"]},{\"Comment\": \"Disable (or not) built-in Documize API import used from SDK (NOTE: no Plugin name)\",\"Disabled\": false,\"API\": \"Convert\",\"Actions\": [\"documizeapi\"]}]');
|
'[{\"Comment\": \"Disable (or not) built-in html import (NOTE: no Plugin name)\",\"Disabled\": false,\"API\": \"Convert\",\"Actions\": [\"htm\",\"html\"]},{\"Comment\": \"Disable (or not) built-in Documize API import used from SDK (NOTE: no Plugin name)\",\"Disabled\": false,\"API\": \"Convert\",\"Actions\": [\"documizeapi\"]}]');
|
||||||
INSERT INTO `config` VALUES ('LICENSE','{\"token\": \"\",\"endpoint\": \"https://api.documize.com\"}');
|
INSERT INTO `config` VALUES ('LICENSE','{\"token\": \"\",\"endpoint\": \"https://api.documize.com\"}');
|
||||||
INSERT INTO `config` VALUES ('META','{\"database\": \"db_00000.sql\"}');
|
INSERT INTO `config` VALUES ('META','{\"database\": \"db_00000.sql\"}');
|
||||||
|
INSERT INTO `documize`.`config` VALUES ( 'SECTION-GITHUB', '{\"clientID\": \"\", \"clientSecret\": \"\", \"authorizationCallbackURL\": \"https://localhost:5001/api/public/validate?section=github\"}' );
|
Loading…
Add table
Add a link
Reference in a new issue