From e8943936c51450540a4f2e8e7a2f3a2af90d14db Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 7 Mar 2018 12:36:40 -0600 Subject: general cleanup (#8387) --- model/manifest.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'model/manifest.go') diff --git a/model/manifest.go b/model/manifest.go index 5ba4854b6..fdf69c2e6 100644 --- a/model/manifest.go +++ b/model/manifest.go @@ -13,15 +13,6 @@ import ( "gopkg.in/yaml.v2" ) -const ( - PLUGIN_CONFIG_TYPE_TEXT = "text" - PLUGIN_CONFIG_TYPE_BOOL = "bool" - PLUGIN_CONFIG_TYPE_RADIO = "radio" - PLUGIN_CONFIG_TYPE_DROPDOWN = "dropdown" - PLUGIN_CONFIG_TYPE_GENERATED = "generated" - PLUGIN_CONFIG_TYPE_USERNAME = "username" -) - type PluginOption struct { // The display name for the option. DisplayName string `json:"display_name" yaml:"display_name"` -- cgit v1.2.3-1-g7c22 From 03b6d1f652407fa9c3ec7e740e120a1c3e920de0 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 7 Mar 2018 13:53:07 -0600 Subject: respect plugin manifest webapp bundle_path (#8393) --- model/manifest.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'model/manifest.go') diff --git a/model/manifest.go b/model/manifest.go index fdf69c2e6..32d4341cd 100644 --- a/model/manifest.go +++ b/model/manifest.go @@ -164,6 +164,11 @@ func (m *Manifest) ClientManifest() *Manifest { cm.Name = "" cm.Description = "" cm.Backend = nil + if cm.Webapp != nil { + cm.Webapp = new(ManifestWebapp) + *cm.Webapp = *m.Webapp + cm.Webapp.BundlePath = "/static/" + m.Id + "_bundle.js" + } return cm } -- cgit v1.2.3-1-g7c22