mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Merge pull request #24 from documize/remove-unused
fixed JS lint errors, remove preview sections
This commit is contained in:
commit
7e4ed6545b
9 changed files with 1 additions and 366 deletions
|
@ -13,7 +13,6 @@ import Ember from 'ember';
|
||||||
import TooltipMixin from '../../mixins/tooltip';
|
import TooltipMixin from '../../mixins/tooltip';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
computed: { oneWay, or, notEmpty },
|
|
||||||
computed
|
computed
|
||||||
} = Ember;
|
} = Ember;
|
||||||
|
|
||||||
|
@ -52,4 +51,4 @@ export default Ember.Component.extend(TooltipMixin, {
|
||||||
this.attrs.onDeletePage(id, this.get('deleteChildren'));
|
this.attrs.onDeletePage(id, this.get('deleteChildren'));
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package asana
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents Asana
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta describes us.
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "3a3f4661-2195-46b1-a69c-546eaccb5f93"
|
|
||||||
section.Title = "Asana"
|
|
||||||
section.Description = "Embed tasks and projects"
|
|
||||||
section.ContentType = "asana"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package docusign
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents DocuSign
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta describes us.
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "a195f983-4bd7-412b-879e-2d71d2f822a7"
|
|
||||||
section.Title = "DocuSign"
|
|
||||||
section.Description = "Sign and approve documents"
|
|
||||||
section.ContentType = "docusign"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package intercom
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents Intercom
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta describes us
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "bf40314d-3b3c-41f9-b283-517da56aa7e4"
|
|
||||||
section.Title = "Intercom"
|
|
||||||
section.Description = "Application events and metrics"
|
|
||||||
section.ContentType = "intercom"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package mailchimp
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents Mailchimp
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta descibes us.
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "feab735b-2d02-4bb1-b501-ced825e22465"
|
|
||||||
section.Title = "Mailchimp"
|
|
||||||
section.Description = "Email campaigns and results"
|
|
||||||
section.ContentType = "mailchimp"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
|
@ -14,42 +14,28 @@ package section
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/asana"
|
|
||||||
"github.com/documize/community/documize/section/code"
|
"github.com/documize/community/documize/section/code"
|
||||||
"github.com/documize/community/documize/section/docusign"
|
|
||||||
"github.com/documize/community/documize/section/gemini"
|
"github.com/documize/community/documize/section/gemini"
|
||||||
"github.com/documize/community/documize/section/github"
|
"github.com/documize/community/documize/section/github"
|
||||||
"github.com/documize/community/documize/section/intercom"
|
|
||||||
"github.com/documize/community/documize/section/mailchimp"
|
|
||||||
"github.com/documize/community/documize/section/markdown"
|
"github.com/documize/community/documize/section/markdown"
|
||||||
"github.com/documize/community/documize/section/papertrail"
|
"github.com/documize/community/documize/section/papertrail"
|
||||||
"github.com/documize/community/documize/section/provider"
|
"github.com/documize/community/documize/section/provider"
|
||||||
"github.com/documize/community/documize/section/salesforce"
|
|
||||||
"github.com/documize/community/documize/section/stripe"
|
|
||||||
"github.com/documize/community/documize/section/table"
|
"github.com/documize/community/documize/section/table"
|
||||||
"github.com/documize/community/documize/section/trello"
|
"github.com/documize/community/documize/section/trello"
|
||||||
"github.com/documize/community/documize/section/wysiwyg"
|
"github.com/documize/community/documize/section/wysiwyg"
|
||||||
"github.com/documize/community/documize/section/zendesk"
|
|
||||||
"github.com/documize/community/wordsmith/log"
|
"github.com/documize/community/wordsmith/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Register sections
|
// Register sections
|
||||||
func Register() {
|
func Register() {
|
||||||
provider.Register("asana", &asana.Provider{})
|
|
||||||
provider.Register("code", &code.Provider{})
|
provider.Register("code", &code.Provider{})
|
||||||
provider.Register("docusign", &docusign.Provider{})
|
|
||||||
provider.Register("gemini", &gemini.Provider{})
|
provider.Register("gemini", &gemini.Provider{})
|
||||||
provider.Register("github", &github.Provider{})
|
provider.Register("github", &github.Provider{})
|
||||||
provider.Register("intercom", &intercom.Provider{})
|
|
||||||
provider.Register("mailchimp", &mailchimp.Provider{})
|
|
||||||
provider.Register("markdown", &markdown.Provider{})
|
provider.Register("markdown", &markdown.Provider{})
|
||||||
provider.Register("salesforce", &salesforce.Provider{})
|
|
||||||
provider.Register("papertrail", &papertrail.Provider{})
|
provider.Register("papertrail", &papertrail.Provider{})
|
||||||
provider.Register("stripe", &stripe.Provider{})
|
|
||||||
provider.Register("table", &table.Provider{})
|
provider.Register("table", &table.Provider{})
|
||||||
provider.Register("trello", &trello.Provider{})
|
provider.Register("trello", &trello.Provider{})
|
||||||
provider.Register("wysiwyg", &wysiwyg.Provider{})
|
provider.Register("wysiwyg", &wysiwyg.Provider{})
|
||||||
provider.Register("zendesk", &zendesk.Provider{})
|
|
||||||
p := provider.List()
|
p := provider.List()
|
||||||
log.Info(fmt.Sprintf("Documize registered %d smart sections", len(p)))
|
log.Info(fmt.Sprintf("Documize registered %d smart sections", len(p)))
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package salesforce
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents Salesforce
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta describes us
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "2240c0f8-b795-47b0-bcd4-5f6b171a2ffd"
|
|
||||||
section.Title = "Salesforce"
|
|
||||||
section.Description = "Customers, contacts and leads"
|
|
||||||
section.ContentType = "salesforce"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package stripe
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents Stripe
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta describes us
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "cb597d8d-c724-4034-b272-e8d9e261444f"
|
|
||||||
section.Title = "Stripe"
|
|
||||||
section.Description = "Online and mobile payments, refunds and transfers"
|
|
||||||
section.ContentType = "stripe"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
||||||
//
|
|
||||||
// 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 Enterprise Edition and obtaining a commercial license
|
|
||||||
// by contacting <sales@documize.com>.
|
|
||||||
//
|
|
||||||
// https://documize.com
|
|
||||||
|
|
||||||
package zendesk
|
|
||||||
|
|
||||||
import (
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/documize/community/documize/section/provider"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Provider represents Zendesk
|
|
||||||
type Provider struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Meta describes us
|
|
||||||
func (*Provider) Meta() provider.TypeMeta {
|
|
||||||
section := provider.TypeMeta{}
|
|
||||||
|
|
||||||
section.ID = "05b02331-4ca2-4fc2-a31a-82bc45dceafe"
|
|
||||||
section.Title = "Zendesk"
|
|
||||||
section.Description = "Show customer support tickets"
|
|
||||||
section.ContentType = "zendesk"
|
|
||||||
section.Preview = true
|
|
||||||
|
|
||||||
return section
|
|
||||||
}
|
|
||||||
|
|
||||||
// Command stub.
|
|
||||||
func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.Request) {
|
|
||||||
provider.WriteEmpty(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render just sends back HMTL as-is.
|
|
||||||
func (*Provider) Render(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh just sends back data as-is.
|
|
||||||
func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
|
|
||||||
return data
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue