From ee4977257aac1e88eeb4728b6886bb3fda228763 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Mon, 18 Jul 2016 14:12:34 -0700 Subject: [PATCH] fixed JS lint errors, remove preview sections --- app/app/components/document/page-heading.js | 3 +- documize/section/asana/asana.go | 50 --------------------- documize/section/docusign/docusign.go | 50 --------------------- documize/section/intercom/intercom.go | 50 --------------------- documize/section/mailchimp/mailchimp.go | 50 --------------------- documize/section/register.go | 14 ------ documize/section/salesforce/salesforce.go | 50 --------------------- documize/section/stripe/stripe.go | 50 --------------------- documize/section/zendesk/zendesk.go | 50 --------------------- 9 files changed, 1 insertion(+), 366 deletions(-) delete mode 100644 documize/section/asana/asana.go delete mode 100644 documize/section/docusign/docusign.go delete mode 100644 documize/section/intercom/intercom.go delete mode 100644 documize/section/mailchimp/mailchimp.go delete mode 100644 documize/section/salesforce/salesforce.go delete mode 100644 documize/section/stripe/stripe.go delete mode 100644 documize/section/zendesk/zendesk.go diff --git a/app/app/components/document/page-heading.js b/app/app/components/document/page-heading.js index bfa3582b..022674f0 100644 --- a/app/app/components/document/page-heading.js +++ b/app/app/components/document/page-heading.js @@ -13,7 +13,6 @@ import Ember from 'ember'; import TooltipMixin from '../../mixins/tooltip'; const { - computed: { oneWay, or, notEmpty }, computed } = Ember; @@ -52,4 +51,4 @@ export default Ember.Component.extend(TooltipMixin, { this.attrs.onDeletePage(id, this.get('deleteChildren')); }, } -}); \ No newline at end of file +}); diff --git a/documize/section/asana/asana.go b/documize/section/asana/asana.go deleted file mode 100644 index 47c64711..00000000 --- a/documize/section/asana/asana.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -} diff --git a/documize/section/docusign/docusign.go b/documize/section/docusign/docusign.go deleted file mode 100644 index 03ce4a22..00000000 --- a/documize/section/docusign/docusign.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -} diff --git a/documize/section/intercom/intercom.go b/documize/section/intercom/intercom.go deleted file mode 100644 index 5abe1c66..00000000 --- a/documize/section/intercom/intercom.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -} diff --git a/documize/section/mailchimp/mailchimp.go b/documize/section/mailchimp/mailchimp.go deleted file mode 100644 index cff56cd0..00000000 --- a/documize/section/mailchimp/mailchimp.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -} diff --git a/documize/section/register.go b/documize/section/register.go index f75134f9..1043d79e 100644 --- a/documize/section/register.go +++ b/documize/section/register.go @@ -14,42 +14,28 @@ package section import ( "fmt" - "github.com/documize/community/documize/section/asana" "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/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/papertrail" "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/trello" "github.com/documize/community/documize/section/wysiwyg" - "github.com/documize/community/documize/section/zendesk" "github.com/documize/community/wordsmith/log" ) // Register sections func Register() { - provider.Register("asana", &asana.Provider{}) provider.Register("code", &code.Provider{}) - provider.Register("docusign", &docusign.Provider{}) provider.Register("gemini", &gemini.Provider{}) provider.Register("github", &github.Provider{}) - provider.Register("intercom", &intercom.Provider{}) - provider.Register("mailchimp", &mailchimp.Provider{}) provider.Register("markdown", &markdown.Provider{}) - provider.Register("salesforce", &salesforce.Provider{}) provider.Register("papertrail", &papertrail.Provider{}) - provider.Register("stripe", &stripe.Provider{}) provider.Register("table", &table.Provider{}) provider.Register("trello", &trello.Provider{}) provider.Register("wysiwyg", &wysiwyg.Provider{}) - provider.Register("zendesk", &zendesk.Provider{}) p := provider.List() log.Info(fmt.Sprintf("Documize registered %d smart sections", len(p))) } diff --git a/documize/section/salesforce/salesforce.go b/documize/section/salesforce/salesforce.go deleted file mode 100644 index 9970d485..00000000 --- a/documize/section/salesforce/salesforce.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -} diff --git a/documize/section/stripe/stripe.go b/documize/section/stripe/stripe.go deleted file mode 100644 index c646cf14..00000000 --- a/documize/section/stripe/stripe.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -} diff --git a/documize/section/zendesk/zendesk.go b/documize/section/zendesk/zendesk.go deleted file mode 100644 index 8b2d1ba5..00000000 --- a/documize/section/zendesk/zendesk.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Documize Inc. . 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 . -// -// 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 -}