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

Remove Ember Attacher add-on

This commit is contained in:
HarveyKandola 2022-01-10 17:01:54 -05:00
parent 5d5e212a6b
commit c31c130ffd
17 changed files with 30 additions and 105 deletions

View file

@ -16,7 +16,7 @@ All you need to provide is your database -- PostgreSQL, Microsoft SQL Server or
[Community+ edition: v4.1.1](https://www.documize.com/community/downloads) [Community+ edition: v4.1.1](https://www.documize.com/community/downloads)
The Community+ edition is the enterprise-ready offering with advanced capabilities and customer support: The Community+ edition is the "Enterprise" offering with advanced capabilities and customer support:
- content approval workflows - content approval workflows
- content organization by label, space and category - content organization by label, space and category
@ -37,6 +37,8 @@ The Community+ edition is the enterprise-ready offering with advanced capabiliti
- macOS - macOS
- Raspberry Pi (ARM build) - Raspberry Pi (ARM build)
Support for AMD and ARM 64 bit architectures.
## Database Support ## Database Support
For all database types, Full-Text Search support (FTS) is mandatory. For all database types, Full-Text Search support (FTS) is mandatory.
@ -59,7 +61,7 @@ For all database types, Full-Text Search support (FTS) is mandatory.
## Technology Stack ## Technology Stack
- Go (v1.17.3) - Go (v1.17.6)
- Ember JS (v3.12.0) - Ember JS (v3.12.0)
## Authentication Options ## Authentication Options
@ -83,8 +85,8 @@ We aim to respond within two working days!
## The Legal Bit ## The Legal Bit
<https://documize.com> <https://www.documize.com>
This software (Documize Community Edition) is licensed under GNU AGPL v3 <http://www.gnu.org/licenses/agpl-3.0.en.html>. You can operate outside the AGPL restrictions by purchasing Documize Community+ edition and obtaining a commercial license by contacting <sales@documize.com>. Documize® is a registered trade mark of Documize Inc. This software (Documize Community Edition) is licensed under GNU AGPL v3 <http://www.gnu.org/licenses/agpl-3.0.en.html>. You can operate outside the AGPL restrictions by purchasing Documize Community+ edition and obtaining a commercial license by contacting <sales@documize.com>. Documize® is a registered trademark of Documize Inc.
Documize uses other open source components and we acknowledge them in [NOTICES](NOTICES.md) Documize uses other open source components and we acknowledge them in [NOTICES](NOTICES.md)

View file

@ -1,4 +0,0 @@
import Component from '@ember/component';
export default Component.extend({
});

View file

@ -27,9 +27,7 @@
<div class="sidebar-content"> <div class="sidebar-content">
<Layout::Grid::SidebarGoTop /> <Layout::Grid::SidebarGoTop />
<Layout::Grid::SidebarCustomAction> <Layout::Grid::SidebarCustomAction>
<i class="dicon {{constants.Icon.Expand}} {{if (gt expandState.length 0) "color-green-500"}}" {{action "onExpandAll"}}> <i class="dicon {{constants.Icon.Expand}} {{if (gt expandState.length 0) "color-green-500"}}" {{action "onExpandAll"}} title="Expand/collapse" />
{{#attach-tooltip showDelay=750}}Expand/collapse{{/attach-tooltip}}
</i>
</Layout::Grid::SidebarCustomAction> </Layout::Grid::SidebarCustomAction>
<Ui::UiSpacer @size="200" /> <Ui::UiSpacer @size="200" />

View file

@ -1,4 +1,3 @@
@import "ui-tooltip";
@import "ui-popup"; @import "ui-popup";
@import "ui-button"; @import "ui-button";
@import "ui-toolbar"; @import "ui-toolbar";

View file

@ -1,11 +0,0 @@
// https://github.com/kybishop/ember-attacher
.ember-attacher-tooltip {
font-size: 0.9rem !important;
padding: 0.5rem 0.75rem !important;
background-color: $theme-700 !important;
> div {
background-color: $theme-700 !important;
}
}

View file

@ -10,19 +10,13 @@
{{#link-to "folder.index" space.id space.slug}} {{#link-to "folder.index" space.id space.slug}}
<div class="name"> <div class="name">
{{#if (eq space.spaceType constants.SpaceType.Public)}} {{#if (eq space.spaceType constants.SpaceType.Public)}}
<i class={{concat "dicon " constants.Icon.World}}> <i class={{concat "dicon " constants.Icon.World}} title="Public space" />
{{#attach-tooltip showDelay=1000}}Public space{{/attach-tooltip}}
</i>
{{/if}} {{/if}}
{{#if (eq space.spaceType constants.SpaceType.Protected)}} {{#if (eq space.spaceType constants.SpaceType.Protected)}}
<i class={{concat "dicon " constants.Icon.People}}> <i class={{concat "dicon " constants.Icon.People}} title="Protected space" />
{{#attach-tooltip showDelay=1000}}Protected space{{/attach-tooltip}}
</i>
{{/if}} {{/if}}
{{#if (eq space.spaceType constants.SpaceType.Private)}} {{#if (eq space.spaceType constants.SpaceType.Private)}}
<i class={{concat "dicon " constants.Icon.Person}}> <i class={{concat "dicon " constants.Icon.Person}} title="Personal space" />
{{#attach-tooltip showDelay=1000}}Personal space{{/attach-tooltip}}
</i>
{{/if}} {{/if}}
{{space.name}} {{space.name}}
</div> </div>

View file

@ -29,10 +29,6 @@
<li class="block-option" {{action "onInsertBlock" block}}> <li class="block-option" {{action "onInsertBlock" block}}>
<div class="name">{{block.title}}</div> <div class="name">{{block.title}}</div>
<div class="desc">{{block.excerpt}}</div> <div class="desc">{{block.excerpt}}</div>
{{#attach-tooltip showDelay=1000}}
{{block.excerpt}}<br>
Published by {{block.firstname}} {{block.lastname}}, {{time-ago block.created}}
{{/attach-tooltip}}
</li> </li>
{{/each}} {{/each}}
</ul> </ul>

View file

@ -4,25 +4,21 @@
{{if (eq document.lifecycle constants.Lifecycle.Live) "label-live"}} {{if (eq document.lifecycle constants.Lifecycle.Live) "label-live"}}
{{if (eq document.lifecycle constants.Lifecycle.Archived) "label-archived"}}"> {{if (eq document.lifecycle constants.Lifecycle.Archived) "label-archived"}}">
{{document.lifecycleLabel}} {{document.lifecycleLabel}}
{{#attach-tooltip showDelay=1000}}Lifecycle: Draft &middot; Live &middot; Archived{{/attach-tooltip}}
</div> </div>
{{#if (eq document.protection constants.ProtectionType.None)}} {{#if (eq document.protection constants.ProtectionType.None)}}
<div class="label-open"> <div class="label-open">
OPEN OPEN
{{#attach-tooltip showDelay=1000}}Change Control: Open &middot; Protected &middot; Locked{{/attach-tooltip}}
</div> </div>
{{/if}} {{/if}}
{{#if (eq document.protection constants.ProtectionType.Review)}} {{#if (eq document.protection constants.ProtectionType.Review)}}
<div class="label-protected"> <div class="label-protected">
PROTECTED PROTECTED
{{#attach-tooltip showDelay=1000}}Change Control: Open &middot; Protected &middot; Locked{{/attach-tooltip}}
</div> </div>
{{/if}} {{/if}}
{{#if (eq document.protection constants.ProtectionType.Lock)}} {{#if (eq document.protection constants.ProtectionType.Lock)}}
<div class="label-locked"> <div class="label-locked">
LOCKED LOCKED
{{#attach-tooltip showDelay=1000}}Change Control: Open &middot; Protected &middot; Locked{{/attach-tooltip}}
</div> </div>
{{/if}} {{/if}}
@ -39,9 +35,8 @@
{{/if}} {{/if}}
{{#if document.template}} {{#if document.template}}
<div class="label-template non-printable"> <div class="label-template non-printable" title="This is a template">
Template Template
{{#attach-tooltip showDelay=1000}}This is a template{{/attach-tooltip}}
</div> </div>
{{/if}} {{/if}}
@ -50,16 +45,14 @@
<div class="title">CATEGORY / TAG</div> <div class="title">CATEGORY / TAG</div>
{{#each selectedCategories as |cat|}} {{#each selectedCategories as |cat|}}
<div class="meta-label"> <div class="meta-label">
<i class="dicon {{constants.Icon.Category}}"/> <i class="dicon {{constants.Icon.Category}}" title="Category" />
{{cat.category}} {{cat.category}}
{{#attach-tooltip showDelay=1000}}Category{{/attach-tooltip}}
</div> </div>
{{/each}} {{/each}}
{{#each tagz as |t|}} {{#each tagz as |t|}}
<div class="meta-label"> <div class="meta-label">
<i class="dicon {{constants.Icon.Tag}}"/> <i class="dicon {{constants.Icon.Tag}}" title="tag" />
{{t}} {{t}}
{{#attach-tooltip showDelay=1000}}Tag{{/attach-tooltip}}
</div> </div>
{{/each}} {{/each}}
{{#if unassigned}} {{#if unassigned}}

View file

@ -11,11 +11,9 @@
<div class="section-heading no-print" id="page-toolbar-{{ page.id }}"> <div class="section-heading no-print" id="page-toolbar-{{ page.id }}">
<div class="section-toolbar"> <div class="section-toolbar">
{{#if canEdit}} {{#if canEdit}}
<i class="add-section dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard" page}}> <i class="add-section dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard" page}} title="Insert section above" />
{{#attach-tooltip showDelay=1000}}Insert section above{{/attach-tooltip}}
</i>
<div class="gap"/> <div class="gap"/>
<i class="dicon {{constants.Icon.Edit}}" {{action "onEdit"}} /> <i class="dicon {{constants.Icon.Edit}}" {{action "onEdit"}} title="Edit" />
<div class="gap"/> <div class="gap"/>
{{/if}} {{/if}}
<i class="dicon {{constants.Icon.Settings}}"> <i class="dicon {{constants.Icon.Settings}}">
@ -60,9 +58,7 @@
{{/attach-popover}} {{/attach-popover}}
</i> </i>
<div class="gap"/> <div class="gap"/>
<i class="dicon {{constants.Icon.Expand}} {{unless expanded "expand"}}" {{action "onExpand"}}> <i class="dicon {{constants.Icon.Expand}} {{unless expanded "expand"}}" {{action "onExpand"}} title="Show/hide" />
{{#attach-tooltip showDelay=1000}}Show/hide{{/attach-tooltip}}
</i>
</div> </div>
</div> </div>
</div> </div>

View file

@ -29,13 +29,11 @@
title={{item.page.title}}> title={{item.page.title}}>
<span class="numbering">{{item.page.numbering}}</span> <span class="numbering">{{item.page.numbering}}</span>
{{#if (or item.userHasChangePending userHasNewPagePending)}} {{#if (or item.userHasChangePending userHasNewPagePending)}}
<span class="color-red-600">[*]&nbsp;</span> <span class="color-red-600" title="Pending changes">[*]&nbsp;</span>
{{#attach-tooltip showDelay=1000}}Pending changes{{/attach-tooltip}}
{{/if}} {{/if}}
{{#if (or permissions.documentApprove roles.documentApprove)}} {{#if (or permissions.documentApprove roles.documentApprove)}}
{{#if item.changeAwaitingReview}} {{#if item.changeAwaitingReview}}
<span class="color-green-700">[*]&nbsp;</span> <span class="color-green-700" title="Awaiting approval">[*]&nbsp;</span>
{{#attach-tooltip showDelay=1000}}Awaiting approval{{/attach-tooltip}}
{{/if}} {{/if}}
{{/if}} {{/if}}
{{item.page.title}} {{item.page.title}}

View file

@ -33,9 +33,7 @@
{{#if canEdit}} {{#if canEdit}}
<div class="start-section"> <div class="start-section">
<i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard"}}> <i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard"}} title="Insert section here" />
{{#attach-tooltip showDelay=1000}}Insert section here{{/attach-tooltip}}
</i>
</div> </div>
{{/if}} {{/if}}

View file

@ -1,3 +1 @@
<i class="dicon {{constants.Icon.GoTop}}" {{action "onClick"}}> <i class="dicon {{constants.Icon.GoTop}}" {{action "onClick"}} title="Go top" />
{{#attach-tooltip showDelay=750}}Go top{{/attach-tooltip}}
</i>

View file

@ -3,35 +3,25 @@
{{#unless hideNavigation}} {{#unless hideNavigation}}
<div class="options"> <div class="options">
{{#link-to "folders" class=(if (eq selectedItem "spaces") "option selected" "option")}} {{#link-to "folders" class=(if (eq selectedItem "spaces") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Grid}}> <i class={{concat "dicon " constants.Icon.Grid}} title="Spaces" />
{{#attach-tooltip showDelay=1000}}Spaces{{/attach-tooltip}}
</i>
{{/link-to}} {{/link-to}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}} {{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#if session.viewDashboard}} {{#if session.viewDashboard}}
{{#link-to "action" class=(if (eq selectedItem "actions") "option selected" "option")}} {{#link-to "action" class=(if (eq selectedItem "actions") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.ListBullet}}> <i class={{concat "dicon " constants.Icon.ListBullet}} title="Actions" />
{{#attach-tooltip showDelay=1000}}Actions{{/attach-tooltip}}
</i>
{{/link-to}} {{/link-to}}
{{#link-to "activity" class=(if (eq selectedItem "activity") "option selected" "option")}} {{#link-to "activity" class=(if (eq selectedItem "activity") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Pulse}}> <i class={{concat "dicon " constants.Icon.Pulse}} title="Activity" />
{{#attach-tooltip showDelay=1000}}Activity{{/attach-tooltip}}
</i>
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}
{{#if session.viewAnalytics}} {{#if session.viewAnalytics}}
{{#link-to "analytics" class=(if (eq selectedItem "analytics") "option selected" "option")}} {{#link-to "analytics" class=(if (eq selectedItem "analytics") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.BarChart}}> <i class={{concat "dicon " constants.Icon.BarChart}} title="Reports" />
{{#attach-tooltip showDelay=1000}}Reports{{/attach-tooltip}}
</i>
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#link-to "search" class=(if (eq selectedItem "search") "option selected" "option")}} {{#link-to "search" class=(if (eq selectedItem "search") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Search}}> <i class={{concat "dicon " constants.Icon.Search}} title="Search" />
{{#attach-tooltip showDelay=1000}}Search{{/attach-tooltip}}
</i>
{{/link-to}} {{/link-to}}
</div> </div>
@ -39,14 +29,12 @@
{{#if session.isAdmin}} {{#if session.isAdmin}}
{{#unless appMeta.valid}} {{#unless appMeta.valid}}
<div class="option invalid-plan" {{action "onBilling"}}> <div class="option invalid-plan" {{action "onBilling"}}>
<i class={{concat "dicon " constants.Icon.Announce}} /> <i class={{concat "dicon " constants.Icon.Announce}} title="Missing activation key" />
{{#attach-tooltip}}Missing activation key{{/attach-tooltip}}
</div> </div>
{{/unless}} {{/unless}}
{{#unless appMeta.configured}} {{#unless appMeta.configured}}
<div class="option invalid-plan" {{action "onConfigured"}}> <div class="option invalid-plan" {{action "onConfigured"}}>
<i class={{concat "dicon " constants.Icon.Announce}} /> <i class={{concat "dicon " constants.Icon.Announce}} title="Missing mail server settings" />
{{#attach-tooltip}}Missing mail server settings{{/attach-tooltip}}
</div> </div>
{{/unless}} {{/unless}}
{{/if}} {{/if}}

View file

@ -29,8 +29,7 @@
<label>Select Gemini workspace</label> <label>Select Gemini workspace</label>
<ul class="section-gemini-workspaces"> <ul class="section-gemini-workspaces">
{{#each workspaces as |card|}} {{#each workspaces as |card|}}
<li class="section-gemini-workspace" id="gemini-workspace-{{card.Id}}"> <li class="section-gemini-workspace" id="gemini-workspace-{{card.Id}}" title="{{card.Title}}">
{{#attach-tooltip showDelay=1000}}{{card.Title}}{{/attach-tooltip}}
<div class="section-gemini-card" style="background-color:{{card.Color}};" {{action "onWorkspaceChange" card.Id}}>{{card.Key}}</div> <div class="section-gemini-card" style="background-color:{{card.Color}};" {{action "onWorkspaceChange" card.Id}}>{{card.Key}}</div>
{{#if card.selected}} {{#if card.selected}}
<div class="section-gemini-selected-card">&#10003;</div> <div class="section-gemini-selected-card">&#10003;</div>

View file

@ -33,21 +33,6 @@
{{#if (eq viewDensity "1")}} {{#if (eq viewDensity "1")}}
{{#link-to "folder.index" space.id space.slug}} {{#link-to "folder.index" space.id space.slug}}
<div class="meta"> <div class="meta">
{{!-- {{#if (eq space.spaceType constants.SpaceType.Public)}}
<i class={{concat "dicon " constants.Icon.World}}>
{{#attach-tooltip showDelay=1000}}Public space{{/attach-tooltip}}
</i>
{{/if}}
{{#if (eq space.spaceType constants.SpaceType.Protected)}}
<i class={{concat "dicon " constants.Icon.People}}>
{{#attach-tooltip showDelay=1000}}Protected space{{/attach-tooltip}}
</i>
{{/if}}
{{#if (eq space.spaceType constants.SpaceType.Private)}}
<i class={{concat "dicon " constants.Icon.Person}}>
{{#attach-tooltip showDelay=1000}}Personal space{{/attach-tooltip}}
</i>
{{/if}} --}}
{{#if space.labelId}} {{#if space.labelId}}
{{spaces/space-label labels=labels labelId=space.labelId}} {{spaces/space-label labels=labels labelId=space.labelId}}
{{/if}} {{/if}}

View file

@ -1,4 +1,3 @@
<div class="avatar" id="avatar-{{refId}}"> <div class="avatar" id="avatar-{{refId}}" title="{{firstname}} {{lastname}}">
{{user-initials firstname lastname}} {{user-initials firstname lastname}}
{{#attach-tooltip showDelay=1000}}{{firstname}}{{lastname}}{{/attach-tooltip}}
</div> </div>

View file

@ -1,3 +0,0 @@
{{#if tooltip}}
{{#attach-tooltip showDelay=750}}{{tooltip}}{{/attach-tooltip}}
{{/if}}