diff --git a/flecs-dash/etc/apps/browser/browser.js b/flecs-dash/etc/apps/browser/browser.js deleted file mode 100644 index 3e51e4c..0000000 --- a/flecs-dash/etc/apps/browser/browser.js +++ /dev/null @@ -1,97 +0,0 @@ - -Vue.component('app-browser', { - data: function() { - return { - scope: "", - entity: "", - entity_validated: "", - entity_components: {}, - entity_request: undefined, - error: false - } - }, - methods: { - e_select_entity(event) { - this.entity = event.entity; - this.$refs.editor.select_entity(event.entity); - }, - e_select_scope(event) { - this.scope = event.scope; - this.$refs.data.select_scope(event.scope); - }, - e_select_component(event) { - this.$refs.component_search.activate(event); - } - }, - template: ` -
- - -
- - -
- -
- - -
- - - - - - -
- ` -}); - -// Signal app has loaded & pass on dependencies -app.app_loaded("browser", [{ - name: "entity-tree", - url: "apps/browser/entity_tree.js" - }, { - name: "entity-tree-item", - url: "apps/browser/entity_tree_item.js" - }, { - name: "entity-search", - url: "apps/browser/entity_search.js" - }, { - name: "entity-kind", - url: "apps/browser/entity_kind.js" - }, { - name: "entity-editor", - url: "apps/browser/entity_editor.js" - }, { - name: "entity-component", - url: "apps/browser/entity_component.js" - }, { - name: "component-properties", - url: "apps/browser/component_properties.js" - }, { - name: "property-value", - url: "apps/browser/property_value.js" - }, { - name: "entity-tag", - url: "apps/browser/entity_tag.js" - }, { - name: "component-search", - url: "apps/browser/component_search.js" - }, { - name: "entity-data", - url: "apps/browser/entity_data.js" - }, { - name: "entity-table", - url: "apps/browser/entity_table.js" - }] -); diff --git a/flecs-dash/etc/apps/browser/component_properties.js b/flecs-dash/etc/apps/browser/component_properties.js deleted file mode 100644 index e4e0709..0000000 --- a/flecs-dash/etc/apps/browser/component_properties.js +++ /dev/null @@ -1,13 +0,0 @@ - -Vue.component('component-properties', { - props: [ "name", "value" ], - methods: { - }, - template: ` -
-
{{ name }}
- -
- ` -}); - \ No newline at end of file diff --git a/flecs-dash/etc/apps/browser/component_search.js b/flecs-dash/etc/apps/browser/component_search.js deleted file mode 100644 index 5209994..0000000 --- a/flecs-dash/etc/apps/browser/component_search.js +++ /dev/null @@ -1,48 +0,0 @@ - -Vue.component('component-search', { - data: function() { - return { - entity: "", - visible: false, - callback: undefined - } - }, - methods: { - activate(event) { - this.entity = ""; - this.$refs.tree.reset(); - this.visible = true; - this.callback = event.callback; - }, - deactivate() { - this.visible = false; - this.callback = undefined; - }, - e_set_entity(event) { - this.callback(event.entity); - this.deactivate(); - } - }, - computed: { - visibility: function() { - if (this.visible) { - return "visible"; - } else { - return "hidden"; - } - } - }, - template: ` -
- -
- ` -}); diff --git a/flecs-dash/etc/apps/browser/entity_component.js b/flecs-dash/etc/apps/browser/entity_component.js deleted file mode 100644 index cd2007e..0000000 --- a/flecs-dash/etc/apps/browser/entity_component.js +++ /dev/null @@ -1,20 +0,0 @@ - -Vue.component('entity-component', { - props: [ "name", "value" ], - methods: { - remove_component() { - this.$emit('remove_component', {component: this.name}); - } - }, - template: ` -
-
{{ name }}
- - - - -
- ` -}); diff --git a/flecs-dash/etc/apps/browser/entity_data.js b/flecs-dash/etc/apps/browser/entity_data.js deleted file mode 100644 index cd68ab0..0000000 --- a/flecs-dash/etc/apps/browser/entity_data.js +++ /dev/null @@ -1,64 +0,0 @@ - -Vue.component('entity-data', { - props: [ "filter" ], - mounted: function() { - this.startRequesting(""); - }, - beforeDestroy: function() { - this.stopRequesting(); - }, - data: function() { - return { - scope: "", - scope_pending: "", - data: [], - data_request: undefined, - error: false - } - }, - methods: { - request_data(scope) { - var url = "scope/" + scope + "?include=Name"; - if (this.filter) { - url += "," + this.filter.join(","); - } - - app.get(url, (msg) => { - this.data = msg; - this.error = false; - this.scope = this.scope_pending; - }, (Http) => { - if (Http.status == 404) { - this.error = true; - } - }); - }, - // Stop periodically requesting the scope - stopRequesting() { - this.data = []; - clearInterval(this.data_request); - }, - // Start periodically requesting a scope - startRequesting(scope) { - this.stopRequesting(); - - // Initial request - var scope_url = scope.replace(/\./g, "/"); - this.request_data(scope_url); - - // Start periodic request - this.data_request = window.setInterval(function() { - this.request_data(scope_url); - }.bind(this), 1000); - }, - select_scope(scope) { - this.scope_pending = scope; - this.startRequesting(scope); - } - }, - template: ` -
- -
- ` -}); diff --git a/flecs-dash/etc/apps/browser/entity_editor.js b/flecs-dash/etc/apps/browser/entity_editor.js deleted file mode 100644 index 929c873..0000000 --- a/flecs-dash/etc/apps/browser/entity_editor.js +++ /dev/null @@ -1,128 +0,0 @@ - -Vue.component('entity-editor', { - data: function() { - return { - entity_pending: "", - entity: "", - components: {}, - } - }, - methods: { - entity_url(entity) { - return entity.replace(/\./g, "/"); - }, - request_entity(entity) { - if (!entity || !entity.length) { - this.entity_pending = ""; - this.entity = ""; - this.components = {}; - return; - } - - this.entity_pending = entity; - var entity_url = this.entity_url(entity); - - app.get("entity/" + entity_url, (msg) => { - this.entity = this.entity_pending; - this.components = msg; - this.error = false; - }, (Http) => { - if (Http.status == 404) { - // Entity can no longer be found on URL - this.entity_pending = ""; - this.entity = ""; - this.components = {}; - } - }); - }, - select_entity(entity) { - if (entity != this.entity) { - this.entity_pending = entity; - this.request_entity(entity); - } - }, - entity_hidden() { - if (this.entity) { - return 'visible;'; - } else { - return 'hidden;'; - } - }, - components_hidden() { - if (this.components) { - return 'visible;'; - } else { - return 'hidden;'; - } - }, - e_add(event) { - this.$emit('select-component', { - callback: function(component) { - app.put("entity/" + this.entity_url(this.entity) + "?select=" + component, undefined, (msg) => { - this.request_entity(this.entity); - }); - }.bind(this) - }); - }, - e_sync(event) { - this.request_entity(this.entity); - }, - e_remove_component(event) { - app.delete("entity/" + this.entity_url(this.entity) + "?select=" + event.component, undefined, (msg) => { - this.request_entity(this.entity); - }); - }, - e_delete(event) { - app.delete("entity/" + this.entity_url(this.entity), undefined, (msg) => { - this.request_entity(undefined); - }); - } - }, - computed: { - tags: function() { - var type = this.components.type; - if (!type) { - return []; - } - - var data = this.components.data; - var tags = []; - for (var i = 0; i < type.length; i ++) { - var tag = type[i]; - if (!data.hasOwnProperty(tag)) { - if (Array.isArray(tag)) { - tags.push(type[i].join(" | ")); - } else { - tags.push(tag); - } - } - } - - return tags; - } - }, - template: ` -
-
-
- {{ components.path }} - - - -
- -
- - -
- -
Tags
-
-
- -
-
-
-
- ` -}); diff --git a/flecs-dash/etc/apps/browser/entity_kind.js b/flecs-dash/etc/apps/browser/entity_kind.js deleted file mode 100644 index afdb954..0000000 --- a/flecs-dash/etc/apps/browser/entity_kind.js +++ /dev/null @@ -1,36 +0,0 @@ - -Vue.component('entity-kind', { - props: [ "kind" ], - methods: { - css() { - var result = "entity-kind"; - if (this.kind && this.kind.length) { - result += " entity-kind-" + this.kind; - } - return result; - }, - }, - computed: { - kind_string: function() { - if (this.kind == "Module") { - return "m"; - } else if (this.kind == "Component") { - return "c"; - } else if (this.kind == "System") { - return "s"; - } else if (this.kind == "Type") { - return "t"; - } else if (this.kind == "Prefab") { - return "p"; - } else { - return "e"; - } - } - }, - template: ` - - {{ kind_string }} - - ` - }); - \ No newline at end of file diff --git a/flecs-dash/etc/apps/browser/entity_search.js b/flecs-dash/etc/apps/browser/entity_search.js deleted file mode 100644 index a8e3a1d..0000000 --- a/flecs-dash/etc/apps/browser/entity_search.js +++ /dev/null @@ -1,45 +0,0 @@ - -Vue.component('entity-search', { - props: [ "error", "search_text", "found" ], - data: function() { - return { - search_scope: "" - } - }, - methods: { - css() { - var result = "entity-search"; - if (this.valid) { - result += " entity-search-found"; - } - return result; - }, - add_entity: function(e) { - this.$emit('add-entity', {entity: this.search_scope}); - }, - changed: function(e) { - this.$emit('changed', {entity: e.target.value}); - }, - set_value(scope) { - this.search_scope = scope; - } - }, - computed: { - default_text: function() { - if (this.search_text) { - return this.search_text; - } else { - return "Find an entity"; - } - }, - valid: function() { - return this.found && this.search_scope.length; - } - }, - template: ` -
- - -
- ` -}); diff --git a/flecs-dash/etc/apps/browser/entity_table.js b/flecs-dash/etc/apps/browser/entity_table.js deleted file mode 100644 index 78d7869..0000000 --- a/flecs-dash/etc/apps/browser/entity_table.js +++ /dev/null @@ -1,85 +0,0 @@ - -Vue.component('entity-table', { - props: [ "data" ], - methods: { - component_headers: function(name) { - const value = this.data.data[name][0]; - let headers = []; - for (key in value) { - headers.push(key); - } - return headers; - }, - component_member: function(value) { - if (Array.isArray(value)) { - return "[...]"; - } else if (typeof value === 'object') { - return "{...}"; - } else if (typeof value === 'number') { - return value.toFixed(1); - } else { - return value; - } - }, - type: function(value) { - if (Array.isArray(value)) { - return 'array'; - } else if (typeof value === 'object') { - return 'object'; - } else if (typeof value === 'number') { - return 'number'; - } else if (typeof value === 'boolean') { - return 'boolean'; - } else if (typeof value === 'string') { - return 'string'; - } else { - return ''; - } - }, - value_css: function(value) { - return "property-value-" + this.type(value); - } - }, - template: ` -
-
- - - - - - - - - - - - - - - - - - - - - - - -
IdName
{{ entity }}{{ data.data.Name[i].value }}
-
-
- ` - }); - \ No newline at end of file diff --git a/flecs-dash/etc/apps/browser/entity_tag.js b/flecs-dash/etc/apps/browser/entity_tag.js deleted file mode 100644 index 8c41036..0000000 --- a/flecs-dash/etc/apps/browser/entity_tag.js +++ /dev/null @@ -1,16 +0,0 @@ - -Vue.component('entity-tag', { - props: [ "name" ], - methods: { - remove_component() { - this.$emit('remove_component', {component: this.name}); - } - }, - template: ` - - {{ name }} - - - ` - }); - \ No newline at end of file diff --git a/flecs-dash/etc/apps/browser/entity_tree.js b/flecs-dash/etc/apps/browser/entity_tree.js deleted file mode 100644 index 9f47f14..0000000 --- a/flecs-dash/etc/apps/browser/entity_tree.js +++ /dev/null @@ -1,207 +0,0 @@ -// Component that implements a traversable entity tree -Vue.component('entity-tree', { - props: { - filter: Array, - search_text: String, - auto_update: Boolean - }, - mounted: function() { - this.startRequesting(""); - }, - beforeDestroy: function() { - this.stopRequesting(); - }, - data: function() { - return { - scope_pending: "", - scope: "", - scope_info: {}, - scope_request: undefined, - entities: [], - entity: "", - error: false - } - }, - methods: { - // Send an HTTP request for the current scope - request_scope(scope) { - var url = "browse/" + scope + "?include=Name"; - if (this.filter) { - url += "," + this.filter.join(","); - } - app.get(url, (msg) => { - if (this.scope != this.scope_pending) { - this.$emit("select-scope", {scope: this.scope_pending}); - } - this.scope = this.scope_pending; - this.entities = msg; - this.error = false; - }, (Http) => { - if (Http.status == 404) { - this.error = true; - } - }); - }, - // Send an HTTP request for the current scope - request_scope_info(scope) { - var filter = "" - if (this.filter) { - filter = "?include=" + this.filter.join(","); - } - app.get("info/" + scope + filter, (msg) => { - this.scope_info = msg; - }, (Http) => { - if (Http.status == 404) { - this.error = true; - } - }); - }, - // Send an HTTP request for the current scope - request_add_entity(entity) { - app.post("entity/" + entity, (msg) => { - }, (Http) => { - if (Http.status == 404) { - this.error = true; - } - }); - }, - // Stop periodically requesting the scope - stopRequesting() { - this.scope = undefined; - this.scope_validated = undefined; - clearInterval(this.scope_request); - }, - // Start periodically requesting a scope - startRequesting(scope) { - this.stopRequesting(); - - // Initial request - var scope_url = scope.replace(/\./g, "/"); - this.request_scope(scope_url); - this.request_scope_info(scope_url); - - // Start periodic request - if (this.auto_update) { - this.scope_request = window.setInterval(function() { - this.request_scope(scope_url); - }.bind(this), 1000); - } - }, - // Reset to initial state - reset() { - this.entity = ""; - this.entities = []; - this.scope = ""; - this.scope_pending = ""; - this.$refs.search.set_value(""); - - if (!this.auto_update) { - this.startRequesting(this.scope); - } - }, - // Change current scope to fully qualified path - set_scope(scope) { - this.scope_pending = scope; - this.$refs.search.set_value(scope); - this.startRequesting(scope); - - if (this.entity != "") { - this.select_entity(""); - } - }, - // Event that contains an full path - e_set_scope: function(event) { - this.set_scope(event.entity); - }, - // Event that contains a relative entity id - e_set_scope_relative: function(event) { - var scope = ""; - - if (this.scope && this.scope != "") { - scope = this.scope + "." + event.entity; - } else { - scope = event.entity; - } - - this.set_scope(scope); - }, - - // Select an entity from the tree - select_entity(entity) { - if (entity == this.entity) { - this.entity = ""; - } else { - this.entity = entity; - } - - this.$emit("select-entity", {entity: this.entity}); - }, - // Select the current scope - e_select_scope: function() { - this.select_entity(this.scope); - }, - e_add_entity: function(e) { - this.request_add_entity(e.entity); - this.scope = this.scope_pending; - var parent = this.parent; - this.scope_pending = parent; - this.startRequesting(parent); - this.$refs.search.set_value(parent); - }, - // Select a relative entity identifier - e_select_entity_relative: function(event) { - var entity; - if (this.scope) { - entity = this.scope + "." + event.entity; - } else { - entity = event.entity; - } - this.select_entity(entity); - }, - entity_tree_css() { - var result = "entity-tree-list"; - if (this.show_nav) { - result += " entity-tree-list-container"; - } - return result; - } - }, - computed: { - parent: function() { - if (this.scope && this.scope.indexOf(".")) { - return this.scope.substr(0, this.scope.lastIndexOf(".")); - } else { - return ""; - } - } - }, - template: ` -
- - - -
- - - -
-
- - - - - - -
-
- ` -}); diff --git a/flecs-dash/etc/apps/browser/entity_tree_item.js b/flecs-dash/etc/apps/browser/entity_tree_item.js deleted file mode 100644 index 65e1c64..0000000 --- a/flecs-dash/etc/apps/browser/entity_tree_item.js +++ /dev/null @@ -1,121 +0,0 @@ - -Vue.component('entity-tree-item', { - props: [ "entity", "current", "text", "nav_only", "" ], - data: function() { - return { - clicks: 0, - timer: null - } - }, - methods: { - nav_scope: function() { - this.$emit("nav-scope", {entity: this.entity.name}); - }, - - single_click_nav_scope: function() { - if (this.nav_only) { - this.nav_scope(); - } else { - this.$emit("select-entity", {entity: this.entity.name}); - } - }, - - is_disabled() { - for (var i = 0; i < this.entity.type.length; i ++) { - var el = this.entity.type[i]; - - if (el == "Disabled") { - return true; - } - } - - return false; - }, - - css() { - var result = "entity-tree-item"; - - if (this.is_disabled()) { - result += " entity-tree-item-disabled"; - } - - if (!this.current) { - return result; - } - - var entity = this.entity.name; - var current; - - if (this.current.indexOf(".") != -1) { - var pos = this.current.lastIndexOf(".") + 1; - current = this.current.substr(pos, this.current.length - pos); - } else { - current = this.current; - } - - if (entity === current) { - result += " entity-tree-item-active"; - } - - return result; - }, - - kind() { - var component = ""; - - for (var i = 0; i < this.entity.type.length; i ++) { - var el = this.entity.type[i]; - - if (el == "Module") { - component = el; - break; - } else if (el == "Component") { - component = el; - // Don't break, entity can also be module - } else if (el == "Prefab") { - component = el; - break; - } else if (el == "flecs.system.System") { - component = "System"; - break; - } else if (el == "Type") { - component = el; - break; - } - } - - return component; - } - }, - computed: { - entity_id: function() { - var text = this.text ? this.text : ""; - var entity = ""; - - if (this.entity) { - entity = this.entity.name ? this.entity.name : ""; - } - - // A bit of a convoluted way to makes sure that we show text instead of an - // entity name when provided, except when the text is "." in which case we - // show the entity name when there is one. - if (text.length && (text != "." || !entity.length)) { - return text; - } else { - return entity; - } - }, - show_nav() { - return !this.nav_only && this.text != "."; - } - }, - template: ` -
-
- - - {{entity_id}} -
-
- ` -}); diff --git a/flecs-dash/etc/apps/browser/property_value.js b/flecs-dash/etc/apps/browser/property_value.js deleted file mode 100644 index 9d1c5bd..0000000 --- a/flecs-dash/etc/apps/browser/property_value.js +++ /dev/null @@ -1,43 +0,0 @@ - -Vue.component('property-value', { - props: [ "value" ], - methods: { - css() { - var result = "property-value"; - if (this.type.length) { - result += " property-value-" + this.type; - } - return result; - } - }, - computed: { - type: function() { - if (Array.isArray(this.value)) { - return 'array'; - } else if (typeof this.value === 'object') { - return 'object'; - } else if (typeof this.value === 'number') { - return 'number'; - } else if (typeof this.value === 'boolean') { - return 'boolean'; - } else if (typeof this.value === 'string') { - return 'string'; - } else { - return ''; - } - } - }, - template: ` -
-
- -
-
- -
-
- -
-
- ` -}); diff --git a/flecs-dash/etc/apps/browser/style.css b/flecs-dash/etc/apps/browser/style.css deleted file mode 100644 index 626669f..0000000 --- a/flecs-dash/etc/apps/browser/style.css +++ /dev/null @@ -1,420 +0,0 @@ -div.browser { - width: 100%; - height: 100%; - color: #eee; -} - -div.entity-tree-list-container { - position: absolute; - top: 60px; - height: calc(100% - 200px); -} - -div.entity-data-container { - position: absolute; - top: 0px; - left: 270px; - max-width: calc(100% - 275px); - height: calc(100% - 10px); - overflow-y: auto; -} - -div.entity-table { - margin: 10px; -} - -div.entity-table-header { - background-color: #1E2022; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - border-style: solid; - border-color: #1E2022; - padding: 5px; -} - -div.entity-table-body { - padding-left: 20px; - padding-right: 20px; - padding-bottom: 20px; - overflow-x: auto; -} - -div.entity-table-body table { - color: #eee; - border-collapse: collapse; - - background-color: #303136; - border-radius: 5px; - box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.5); -} - -th.table-component { - background-color: #1E2022; - padding-top: 10px; - padding-left: 16px; - padding-right: 16px; - text-transform: uppercase; - font-size: 14px; - font-weight: bold; -} - -th.table-component:first-child { - border-top-left-radius: 5px; -} - -th.table-component:last-child { - border-top-right-radius: 5px; -} - -.table-separator { - background-color: #37393E !important; - padding: 0.5px !important; -} - -td.table-separator { - border-top-color: #37393E; - border-top-style: solid; - border-top-width: 1px; -} - -th.table-member { - background-color: #1E2022 !important; - color: #aaa !important; - text-align: center; - padding-left: 8px; - padding-right: 8px; - padding-bottom: 5px; - font-weight: normal; -} - -td.table-value { - font-weight: 300; - padding: 8px; - padding-left: 10px; - padding-right: 10px; - text-align: center; - white-space: nowrap; - - border-top-color: #37393E; - border-top-style: solid; - border-top-width: 1px; -} - -div.entity-tree { - position: relative; - top: 0px; - width: 250px; - min-width: 200px; - height: calc(100% - 20px); - padding: 10px; - background-color: #303136; - margin: 0px; - box-shadow: 5px 0px 8px rgba(0, 0, 0, 0.4); -} - -div.entity-tree-list { - position: absolute; - top: 60px; - width: 250px; - min-width: 250px; - height: calc(100% - 60px); - overflow-y: auto; - margin: 0px; -} - -div.entity-tree-item { - position: relative; - font-size: 16px; - padding-left: 10px; - padding-right: 20px; - padding-top: 10px; - padding-bottom: 10px; - min-height: 20px; - cursor: pointer; - - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -div.entity-tree-separator { - border-top-style: solid; - border-top-color: #37393E; - border-top-width: 1px; - margin-top: 10px; - margin-bottom: 10px; -} - -div.entity-tree-item:hover { - background-color: #37393E; -} - -div.entity-tree-item-disabled { - color: #aaa; -} - -div.entity-tree-item-active { - background-color: #37393E; - color: #eee; -} - -span.entity-item-name { - padding-left: 30px; -} - -span.entity-kind { - position: absolute; - border-style: solid; - border-width: 1px; - border-color: #eee; - border-radius: 4px; - top: 11px; - left: 15px; - padding: 2px; - min-width: 10px; - min-height: 10px; - font-size: 10px; - text-align: center; - text-transform: uppercase; -} - -span.entity-kind-Module { - color: #C7CA6C; - border-color: #C7CA6C; -} - -span.entity-kind-Component { - color: #47B576; - border-color: #47B576; -} - -span.entity-kind-System { - color: #4981B5; - border-color: #4981B5; -} - -span.entity-kind-Type { - color: #4981B5; - border-color: #4981B5; -} - -span.entity-kind-Prefab { - color: #B5488F; - border-color: #B5488F; -} - -div.entity-search { - position: absolute; -} - -div.entity-search input { - background-color: #1E2022; - border-radius: 5px; - border-style: solid; - border-width: 1px; - border-color: #1E2022; - margin: 2px; - width: 246px; - font-size: 16px; - padding: 8px; - color: #eee; - transition: border-color 200ms; -} - -div.entity-search-found input { - border-color: #47B576; -} - -p.list-header { - position: absolute; - text-transform: uppercase; - font-size: 14px; - font-weight: bold; - padding: 10px; -} - -#scope-parent { - position: absolute; - top: 55px; - width: 220px; -} - -#scope-entity { - position: absolute; - top: 95px; - width: 220px; -} - -#header-children { - top: 130px; -} - -div.entity-editor { - background-color: #303136; - position: absolute; - top: 0px; - right: 0px; - width: 350px; - min-width: 350px; - height: calc(100%); - margin: 0px; - box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); -} - -div.entity-name { - background-color: #1E2022; - font-size: 14px; - font-weight: bold; - padding: 10px; - padding-top: 5px; -} - -div.entity-component { - position: relative; -} - -div.entity-component-buttons { - position: relative; - padding: 10px; -} - -button { - background-color: #eee; - color: #1E2022; - padding: 6px; - margin-top: 5px; - margin-left: 5px; - border: none; - font-size: 14px; - cursor: pointer; - outline: none; -} - -div.entity-component-name { - font-weight: bold; - padding: 10px; - margin-top: 20px; - border-top-style: solid; - border-top-width: 1px; - border-top-color: #37393E; - text-transform: uppercase; - font-size: 14px; -} - -div.entity-component-value { - padding: 5px; - margin-top: 5px; - margin-bottom: 10px; -} - -span.entity-tag { - position: relative; - background-color: #1E2022; - padding: 8px; - padding-right: 30px; - margin: 2px; - float: left; - cursor: pointer; -} - -div.entity-tags { - margin-left: 20px; -} - -img.entity-icon { - position: relative; - top: 3px; - left: 5px; - width: 18px; - height: 18px; - cursor: pointer; -} - -img.entity-remove-icon { - position: absolute; - top: 8px; - right: 8px; - width: 18px; - height: 18px; - cursor: pointer; -} - -div.component { - position: relative; - padding: 10px; - padding-left: 20px; - margin-top: 5px; - height: 5px; -} - -div.component-key { - position: absolute; - top: 0px; - font-size: 14px; - color: #aaa; -} - -div.property-value { - position: absolute; - top: -5px; - left: 100px; - width: calc(100% - 110px); -} - -div.property-value input { - background-color: #1E2022; - border-radius: 2px; - border-style: solid; - border-width: 1px; - border-color: #1E2022; - font-size: 14px; - margin-bottom: 5px; - width: 100%; -} - -div.property-value-string input { - color: #B56D48; -} - -div.property-value-number input { - color: #67B588; -} - -div.property-value-boolean input { - color: #4981B5; -} - -.property-value-string { - color: #B56D48; -} - -.property-value-number { - color: #67B588; -} - -.property-value-boolean { - color: #4981B5; -} - -div.component-search-darken { - position: absolute; - top: 0px; - left: 0px; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.5); -} - -div.component-search { - background-color: #303136; - position: absolute; - padding-bottom: 10px; - top: 35px; - right: 40px; - height: 400px; - max-width: 270px; - box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5); -} diff --git a/flecs-dash/etc/apps/overview/delta_time_graph.js b/flecs-dash/etc/apps/overview/delta_time_graph.js deleted file mode 100644 index bf626ec..0000000 --- a/flecs-dash/etc/apps/overview/delta_time_graph.js +++ /dev/null @@ -1,122 +0,0 @@ -const delta_time_chart = { - type: 'line', - data: { - labels: [], - datasets: [ - { - label: 'avg', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#5BE595', - ], - borderWidth: 2, - pointRadius: 0 - }, - { - label: 'min', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#40805B', - ], - borderWidth: 1, - pointRadius: 0 - }, - { - label: 'max', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#40805B', - ], - borderWidth: 1, - pointRadius: 0 - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - scales: { - yAxes: [{ - id: 'time', - position: 'right', - ticks: { - beginAtZero: false, - padding: 10, - callback: function(value, index, values) { - return (1000 * value).toFixed(2) + "ms"; - } - } - }], - xAxes: [{ - ticks: { - minRotation: 0, - maxRotation: 0, - maxTicksLimit: 20 - } - }] - } - } - } - - Vue.component('delta-time-graph', { - props: ['tick', 'data'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.data.world) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - var labels = []; - var length = this.data.world.history_1m.frame_time_total.avg.length; - for (var i = 0; i < length; i ++) { - labels.push((length - i) + "s"); - } - - delta_time_chart.data.labels = labels; - delta_time_chart.data.datasets[0].data = this.data.world.history_1m.delta_time.avg; - delta_time_chart.data.datasets[1].data = this.data.world.history_1m.delta_time.min; - delta_time_chart.data.datasets[2].data = this.data.world.history_1m.delta_time.max; - }, - createChart() { - const ctx = document.getElementById('delta-time-graph'); - this.chart = new Chart(ctx, { - type: delta_time_chart.type, - data: delta_time_chart.data, - options: delta_time_chart.options - }); - }, - updateChart() { - if (!this.data.world) { - return; - } - this.setValues(); - this.chart.update(); - } - }, - template: ` -
- -
` - }); diff --git a/flecs-dash/etc/apps/overview/entity_graph.js b/flecs-dash/etc/apps/overview/entity_graph.js deleted file mode 100644 index a0b7185..0000000 --- a/flecs-dash/etc/apps/overview/entity_graph.js +++ /dev/null @@ -1,116 +0,0 @@ - -const entity_chart = { - type: 'line', - data: { - labels: [], - datasets: [ - { - label: 'Total', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#5BE595', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Matched', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#46D9E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - legend: { - display: true - }, - scales: { - yAxes: [{ - id: 'count', - ticks: { - beginAtZero: true, - padding: 10, - callback: function(value, index, values) { - return value; - } - } - }], - xAxes: [{ - ticks: { - minRotation: 0, - maxRotation: 0, - maxTicksLimit: 20 - } - }] - } - } - } - - Vue.component('entity-graph', { - props: ['tick', 'data'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.data.world) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - var labels = []; - var length = this.data.world.history_1m.frame_time_total.avg.length; - for (var i = 0; i < length; i ++) { - labels.push((length - i) + "s"); - } - - entity_chart.data.labels = labels; - entity_chart.data.datasets[0].data = this.data.world.history_1m.entity_count.avg; - entity_chart.data.datasets[1].data = this.data.world.history_1m.matched_entity_count.avg; - }, - createChart() { - const ctx = document.getElementById('entity-graph'); - this.chart = new Chart(ctx, { - type: entity_chart.type, - data: entity_chart.data, - options: entity_chart.options - }); - }, - updateChart() { - if (!this.data.world) { - return; - } - this.setValues(); - this.chart.update(); - } - }, - template: ` -
- -
` - }); diff --git a/flecs-dash/etc/apps/overview/operation_graph.js b/flecs-dash/etc/apps/overview/operation_graph.js deleted file mode 100644 index bcade48..0000000 --- a/flecs-dash/etc/apps/overview/operation_graph.js +++ /dev/null @@ -1,149 +0,0 @@ -const operation_chart = { - type: 'line', - data: { - labels: [], - datasets: [ - { - label: 'New', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#5BE595', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Delete', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#46D9E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Set', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#2D5BE6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Add', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#6146E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Remove', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#E550E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - scales: { - yAxes: [{ - id: 'count', - ticks: { - beginAtZero: true, - padding: 10, - callback: function(value, index, values) { - return value + "/s"; - } - } - }], - xAxes: [{ - ticks: { - minRotation: 0, - maxRotation: 0, - maxTicksLimit: 20 - } - }] - } - } - } - - Vue.component('operation-graph', { - props: ['tick', 'data'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.data.world) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - var labels = []; - var length = this.data.world.history_1m.frame_time_total.avg.length; - for (var i = 0; i < length; i ++) { - labels.push((length - i) + "s"); - } - - operation_chart.data.labels = labels; - operation_chart.data.datasets[0].data = this.data.world.history_1m.new_count.avg; - operation_chart.data.datasets[1].data = this.data.world.history_1m.delete_count.avg; - operation_chart.data.datasets[2].data = this.data.world.history_1m.set_count.avg; - operation_chart.data.datasets[3].data = this.data.world.history_1m.add_count.avg; - operation_chart.data.datasets[4].data = this.data.world.history_1m.remove_count.avg; - }, - createChart() { - const ctx = document.getElementById('operation-graph'); - - this.chart = new Chart(ctx, { - type: operation_chart.type, - data: operation_chart.data, - options: operation_chart.options - }); - }, - updateChart() { - if (!this.data.world) { - return; - } - this.setValues(); - this.chart.update(); - } - }, - template: ` -
- -
` - }); diff --git a/flecs-dash/etc/apps/overview/overview.js b/flecs-dash/etc/apps/overview/overview.js deleted file mode 100644 index f64558e..0000000 --- a/flecs-dash/etc/apps/overview/overview.js +++ /dev/null @@ -1,190 +0,0 @@ - -Vue.component('app-overview', { - mounted: function() { - this.startRequesting(""); - }, - beforeDestroy: function() { - this.stopRequesting(); - }, - data: function() { - return { - data: {}, - data_request: undefined, - error: false, - tick: 0 - } - }, - methods: { - request_data() { - var url = "metrics?world=yes"; - - this.tick ++; - - app.get(url, (msg) => { - this.data = msg; - this.error = false; - }, (Http) => { - if (Http.status == 404) { - this.error = true; - } - }); - }, - // Stop periodically requesting the scope - stopRequesting() { - this.data = []; - clearInterval(this.data_request); - }, - // Start periodically requesting a scope - startRequesting(scope) { - this.stopRequesting(); - - // Initial request - this.request_data(); - - // Start periodic request - this.data_request = window.setInterval(function() { - this.request_data(); - }.bind(this), 1000); - }, - entity_count() { - if (!this.data.world) { - return 0; - } - return this.data.world.current.entity_count; - }, - operation_count() { - if (!this.data.world) { - return 0; - } - return (this.data.world.current.add_count + - this.data.world.current.remove_count + - this.data.world.current.clear_count + - this.data.world.current.delete_count + - this.data.world.current.set_count + - this.data.world.current.bulk_new_count).toFixed(0); - }, - system_count() { - if (!this.data.world) { - return 0; - } - return (this.data.world.current.systems_ran).toFixed(0); - }, - component_count() { - if (!this.data.world) { - return 0; - } - return this.data.world.current.component_count; - }, - table_count() { - if (!this.data.world) { - return 0; - } - return this.data.world.current.table_count; - }, - fragmentation() { - if (!this.data.world) { - return 0; - } - - /* Compute global fragmentation as total matched tables divided by total - * matched entities. Subtract one from the tables, so that if there is a - * single entity matching a single table, fragmentation is 0% */ - return (100 * (this.data.world.current.matched_table_count - 1) / - this.data.world.current.matched_entity_count).toFixed(0); - } - }, - template: ` -
-
- -
-
entities
-
- {{entity_count()}} -
-
- -
-
components
-
- {{component_count()}} -
-
- -
-
systems
-
- {{system_count()}} -
-
- -
-
tables
-
- {{table_count()}} -
-
- -
-
fragmentation
-
- {{fragmentation()}}% -
-
- -
- -
-
performance
-
- -
-
- -
-
delta time
-
- -
-
- -
-
operations ({{operation_count()}})
-
- -
-
- -
-
entities ({{entity_count()}})
-
- -
-
- -
-
tables ({{table_count()}})
-
- -
-
-
- ` -}); - -app.app_loaded("overview", [{ - name: "entity-graph", - url: "apps/overview/entity_graph.js" -}, { - name: "performance-graph", - url: "apps/overview/performance_graph.js" -}, { - name: "operation-graph", - url: "apps/overview/operation_graph.js" -}, { - name: "table-graph", - url: "apps/overview/table_graph.js" -}, { - name: "delta-time-graph", - url: "apps/overview/delta_time_graph.js" -}]); diff --git a/flecs-dash/etc/apps/overview/performance_graph.js b/flecs-dash/etc/apps/overview/performance_graph.js deleted file mode 100644 index 74b52cb..0000000 --- a/flecs-dash/etc/apps/overview/performance_graph.js +++ /dev/null @@ -1,149 +0,0 @@ -const performance_chart = { - type: 'line', - data: { - labels: [], - datasets: [ - { - label: 'FPS', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#5BE595', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "fps" - }, - { - label: 'Frame', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#6146E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "time" - }, - { - label: 'Systems', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#46D9E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "time" - }, - { - label: 'Merging', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#E550E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "time" - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - scales: { - yAxes: [{ - id: 'fps', - ticks: { - beginAtZero: true, - padding: 10, - callback: function(value, index, values) { - return value + "Hz"; - } - } - }, { - id: 'time', - position: 'right', - ticks: { - beginAtZero: true, - padding: 10, - callback: function(value, index, values) { - return (1000 * value).toFixed(2) + "ms"; - } - } - }], - xAxes: [{ - ticks: { - minRotation: 0, - maxRotation: 0, - maxTicksLimit: 20 - } - }] - } - } - } - - Vue.component('performance-graph', { - props: ['tick', 'data'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.data.world) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - var labels = []; - var length = this.data.world.history_1m.frame_time_total.avg.length; - for (var i = 0; i < length; i ++) { - labels.push((length - i) + "s"); - } - - performance_chart.data.labels = labels; - performance_chart.data.datasets[0].data = this.data.world.history_1m.fps.avg; - performance_chart.data.datasets[1].data = this.data.world.history_1m.frame_time_total.avg; - performance_chart.data.datasets[2].data = this.data.world.history_1m.system_time_total.avg; - performance_chart.data.datasets[3].data = this.data.world.history_1m.merge_time_total.avg; - }, - createChart() { - const ctx = document.getElementById('fps-graph'); - - performance_chart.options.scales.yAxes[1].ticks.suggestedMax = 1.0 / this.data.target_fps; - - this.chart = new Chart(ctx, { - type: performance_chart.type, - data: performance_chart.data, - options: performance_chart.options - }); - }, - updateChart() { - if (!this.data.world) { - return; - } - this.setValues(); - this.chart.update(); - } - }, - template: ` -
- -
` - }); \ No newline at end of file diff --git a/flecs-dash/etc/apps/overview/table_graph.js b/flecs-dash/etc/apps/overview/table_graph.js deleted file mode 100644 index de8e7a4..0000000 --- a/flecs-dash/etc/apps/overview/table_graph.js +++ /dev/null @@ -1,140 +0,0 @@ - -const table_chart = { - type: 'line', - data: { - labels: [], - datasets: [ - { - label: 'Total', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#5BE595', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Matched', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#46D9E6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Singleton', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#4596E5', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - }, - { - label: 'Empty', - data: [], - backgroundColor: [ 'rgba(0,0,0,0)' ], - borderColor: [ - '#2D5BE6', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "count" - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - legend: { - display: true - }, - scales: { - yAxes: [{ - id: 'count', - ticks: { - beginAtZero: true, - padding: 10, - callback: function(value, index, values) { - return value; - } - } - }], - xAxes: [{ - ticks: { - minRotation: 0, - maxRotation: 0, - maxTicksLimit: 20 - } - }] - } - } - } - - Vue.component('table-graph', { - props: ['tick', 'data'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.data.world) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - var labels = []; - var length = this.data.world.history_1m.table_count.avg.length; - for (var i = 0; i < length; i ++) { - labels.push((length - i) + "s"); - } - - table_chart.data.labels = labels; - table_chart.data.datasets[0].data = this.data.world.history_1m.table_count.avg; - table_chart.data.datasets[1].data = this.data.world.history_1m.matched_table_count.avg; - table_chart.data.datasets[2].data = this.data.world.history_1m.singleton_table_count.avg; - table_chart.data.datasets[3].data = this.data.world.history_1m.empty_table_count.avg; - }, - createChart() { - const ctx = document.getElementById('table-graph'); - this.chart = new Chart(ctx, { - type: table_chart.type, - data: table_chart.data, - options: table_chart.options - }); - }, - updateChart() { - if (!this.data.world) { - return; - } - this.setValues(); - this.chart.update(); - } - }, - template: ` -
- -
` - }); diff --git a/flecs-dash/etc/apps/systems/style.css b/flecs-dash/etc/apps/systems/style.css deleted file mode 100644 index 4f33e0d..0000000 --- a/flecs-dash/etc/apps/systems/style.css +++ /dev/null @@ -1,187 +0,0 @@ - -div.system-header { - padding-bottom: 10px; -} - -div.systems { - position: relative; -} - -div.system { - position: relative; - background-color: #1E2022; - color: #eee; - font-size: 16px; - padding: 10px; - padding-top: 10px; - padding-bottom: 5px; - margin-left: 10px; - margin-right: 10px; - margin-top: 5px; - height: 20px; - border-left-style: solid; - border-left-width: 5px; - border-left-color: #181a1b; - transition: border-left-color 0.3s; -} - -div.system-query { - position: relative; - background-color: #26292b; - color: #eee; - font-size: 16px; - padding: 10px; - padding-top: 5px; - margin-left: 10px; - margin-right: 10px; - margin-top: 0px; - height: 20px; - border-left-style: solid; - border-left-width: 5px; - border-left-color: #181a1b; - transition: border-left-color 0.3s; -} - -span.system-module { - color: #88949b; - font-size: 14px; - font-weight: normal; - padding-left: 5px; -} - -span.system-metrics { - position: absolute; - top: 6px; - right: 380px; - background-color: #26292b; - color: #88949b; - font-size: 14px; - font-weight: normal; - border-radius: 2px; - margin-left: 5px; - padding: 3px; - padding-left: 5px; - padding-right: 5px; -} - -div.merge { - position: relative; - background-color: #1E2022; - color: #eee; - font-size: 16px; - padding: 10px; - margin-left: 10px; - margin-right: 10px; - margin-top: 5px; - border-left-color: #181818; - border-left-style: solid; - border-left-width: 5px; -} - -div.system-entity-graph { - position: absolute; - top: 7px; - right: 35px; - height: 28px; - width: 300px; - background-color: #26292b; -} - -div.system-time-graph { - position: absolute; - top: 7px; - right: 35px; - height: 28px; - width: 300px -} - -div.system-graph-label { - position: absolute; - top: -5px; - left: -65px; - text-align: right; - padding-top: 8px; - padding-bottom: 8px; - padding-right: 5px; - width: 60px; - font-size: 13px; - color: #888; -} - -div.system-graph-label-filled { - background-color: #26292b; -} - -div.system-graph-label-secondary { - position: absolute; - top: 0px; - left: 295px; - font-size: 13px; -} - -span.system-component { - position: relative; - top: 5px; - background-color: #1E2022; - padding: 4px; - color: #4fa7ff; - margin-right: 5px; - font-size: 14px; -} - -span.system-component-annotation { - position: relative; - left: -5px; - background-color: #181a1b; - padding: 4px; - padding-left: 3px; - padding-right: 0px; - color: #47B576; - margin-right: 0px; - font-size: 14px; -} - -span.system-component-not { - color: #B5494B; -} - -span.system-component-tag { - color: #9546E5; -} - -div.pct-lowest { - color: #888; -} - -div.pct-low { - color: #5BE595; -} - -div.pct-medium { - color: #C6CA50; -} - -div.pct-high { - color: #B56D48; -} - -div.pct-highest { - color: #B5494B; -} - - -div.system-low { - border-left-color: #5BE595; -} - -div.system-medium { - border-left-color: #C6CA50; -} - -div.system-high { - border-left-color: #B56D48; -} - -div.system-highest { - border-left-color: #B5494B; -} diff --git a/flecs-dash/etc/apps/systems/system.js b/flecs-dash/etc/apps/systems/system.js deleted file mode 100644 index 45d70a2..0000000 --- a/flecs-dash/etc/apps/systems/system.js +++ /dev/null @@ -1,48 +0,0 @@ - - -Vue.component('system', { - props: ['tick', 'system', 'system_time'], - methods: { - entity_count() { - return this.system.current.matched_entity_count; - }, - table_count() { - return this.system.current.matched_table_count; - }, - fragmentation() { - return (((this.table_count() - 1) / this.entity_count()) * 100).toFixed(1) + "%"; - }, - percentage() { - return (this.system.current.time_spent / this.system_time) * 100; - }, - percentage_class() { - let pct = this.percentage(); - if (pct < 1.0) { - return "system-lowest"; - } else if (pct < 5.0) { - return "system-low"; - } else if (pct < 10.0) { - return "system-medium"; - } else if (pct < 20.0) { - return "system-high"; - } else { - return "system-highest"; - } - } - }, - template: ` -
-
-
- {{system.name}} - {{system.module}} - T:{{table_count()}} - F:{{fragmentation()}} - -
-
-
- - -
-
` -}); diff --git a/flecs-dash/etc/apps/systems/system_component.js b/flecs-dash/etc/apps/systems/system_component.js deleted file mode 100644 index d7700ee..0000000 --- a/flecs-dash/etc/apps/systems/system_component.js +++ /dev/null @@ -1,31 +0,0 @@ - -Vue.component('system-component', { - props: ['component'], - methods: { - css() { - if (this.component.exclude) { - return "system-component-not"; - } - return ""; - } - }, - template: ` - - - in - - - $ - - - parent - - - ref - - - 0 - - {{component.name}} - ` -}); diff --git a/flecs-dash/etc/apps/systems/system_entity_graph.js b/flecs-dash/etc/apps/systems/system_entity_graph.js deleted file mode 100644 index b8a4be4..0000000 --- a/flecs-dash/etc/apps/systems/system_entity_graph.js +++ /dev/null @@ -1,125 +0,0 @@ - -const system_entity_chart = { - type: 'line', - data: { - labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 12, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 13, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 14, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 15, 56, 57, 58, 59, 60], - datasets: [ - { - label: 'Matched entities', - data: [], - backgroundColor: [ '#26352c' ], - borderColor: [ '#5BE595', ], - borderWidth: 2, - pointRadius: 0, - fill: true, - yAxisID: "entities" - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - hover: { - animationDuration: 0 // duration of animations when hovering an item - }, - responsiveAnimationDuration: 0, - legend: { - display: false - }, - elements: { - line: { - tension: 0 // disables bezier curves - } - }, - scales: { - yAxes: [{ - id: 'entities', - position: 'right', - gridLines: { - display:false - }, - ticks: { - display: false, - beginAtZero: true, - maxTicksLimit: 2 - } - }], - xAxes: [{ - gridLines: { - display:false - }, - ticks: { - display: false - } - }] - } - } -} - -Vue.component('system-entity-graph', { - props: ['tick', 'system'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.system.history_1m) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - system_entity_chart.data.datasets[0].data = this.system.history_1m.matched_entity_count.avg; - }, - - createChart() { - const ctx = document.getElementById('system-entity-' + this.system.name + '-graph'); - this.chart = new Chart(ctx, { - type: system_entity_chart.type, - data: system_entity_chart.data, - options: system_entity_chart.options - }); - }, - - updateChart() { - if (!this.system.history_1m) { - return; - } - this.setValues(); - this.chart.update(); - }, - - entity_count() { - if (!this.system || !this.system.current) { - return; - } - return this.system.current.matched_entity_count; - } - }, - template: ` -
-
- {{entity_count()}} -
- -
` -}); diff --git a/flecs-dash/etc/apps/systems/system_time_graph.js b/flecs-dash/etc/apps/systems/system_time_graph.js deleted file mode 100644 index 5d7db00..0000000 --- a/flecs-dash/etc/apps/systems/system_time_graph.js +++ /dev/null @@ -1,170 +0,0 @@ - -const system_time_chart = { - type: 'line', - data: { - labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 12, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 13, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 14, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 15, 56, 57, 58, 59, 60], - datasets: [ - { - label: 'Matched entities', - data: [], - backgroundColor: [ '#26537F' ], - borderColor: [ - '#4596E5', - ], - borderWidth: 2, - pointRadius: 0, - yAxisID: "entities" - } - ] - }, - options: { - title: { - display: false - }, - responsive: true, - maintainAspectRatio: false, - lineTension: 1, - animation: { - duration: 0 - }, - hover: { - animationDuration: 0 // duration of animations when hovering an item - }, - responsiveAnimationDuration: 0, - legend: { - display: false - }, - elements: { - line: { - tension: 0 // disables bezier curves - } - }, - scales: { - yAxes: [{ - id: 'entities', - position: 'right', - gridLines: { - display:false - }, - ticks: { - display: false, - beginAtZero: true, - maxTicksLimit: 2 - } - }], - xAxes: [{ - gridLines: { - display:false - }, - ticks: { - display: false - } - }] - } - } -} - -Vue.component('system-time-graph', { - props: ['tick', 'system', 'system_time', 'percentage'], - updated() { - this.updateChart(); - }, - data: function() { - return { - chart: undefined - } - }, - methods: { - setValues() { - if (!this.system.history_1m) { - return; - } - - if (!this.chart) { - this.createChart(); - } - - system_time_chart.data.datasets[0].data = this.system.history_1m.time_spent.avg; - }, - - createChart() { - const ctx = document.getElementById('system-time-' + this.system.name + '-graph'); - this.chart = new Chart(ctx, { - type: system_time_chart.type, - data: system_time_chart.data, - options: system_time_chart.options - }); - }, - - updateChart() { - if (!this.system.history_1m) { - return; - } - this.setValues(); - this.chart.update(); - }, - - time_spent() { - let time_spent = this.system.current.time_spent; - if (time_spent >= 1.0) { - return time_spent.toFixed(0) + "s"; - } - - time_spent *= 1000; - if (time_spent >= 1.0) { - return time_spent.toFixed(0) + "ms"; - } - - time_spent *= 1000; - if (time_spent >= 1.0) { - return time_spent.toFixed(0) + "us"; - } - - time_spent *= 1000; - if (time_spent >= 1.0) { - return time_spent.toFixed(0) + "ns"; - } else if (time_spent >= 0.01) { - return time_spent.toFixed(2) + "ns"; - } else { - return "0ns"; - } - }, - percentage_formatted() { - let pct = this.percentage; - if (pct > 10.0) { - return pct.toFixed(0) + "%" - } else { - return pct.toFixed(1) + "%" - } - }, - percentage_class() { - let pct = this.percentage; - if (pct < 1.0) { - return "pct-lowest"; - } else if (pct < 5.0) { - return "pct-low"; - } else if (pct < 10.0) { - return "pct-medium"; - } else if (pct < 20.0) { - return "pct-high"; - } else { - return "pct-highest"; - } - } - }, - template: ` -
-
- {{time_spent()}} -
-
- {{percentage_formatted()}} -
- -
` -}); diff --git a/flecs-dash/etc/apps/systems/systems.js b/flecs-dash/etc/apps/systems/systems.js deleted file mode 100644 index aaaa149..0000000 --- a/flecs-dash/etc/apps/systems/systems.js +++ /dev/null @@ -1,173 +0,0 @@ - -Vue.component('app-systems', { - mounted: function() { - this.startRequesting(""); - }, - beforeDestroy: function() { - this.stopRequesting(); - }, - data: function() { - return { - data: {}, - data_request: undefined, - error: false, - tick: 0 - } - }, - methods: { - request_data() { - var url = "metrics?pipeline=yes"; - - this.tick ++; - - app.get(url, (msg) => { - this.data = msg; - this.error = false; - }, (Http) => { - if (Http.status == 404) { - this.error = true; - } - }); - }, - // Stop periodically requesting the scope - stopRequesting() { - this.data = []; - clearInterval(this.data_request); - }, - // Start periodically requesting a scope - startRequesting(scope) { - this.stopRequesting(); - - // Initial request - this.request_data(); - - // Start periodic request - this.data_request = window.setInterval(function() { - this.request_data(); - }.bind(this), 1000); - }, - format_num(val) { - if (val < 1.0) { - return val.toFixed(2); - } else if (val < 10.0) { - return val.toFixed(1); - } else { - return val.toFixed(0); - } - }, - to_unit(val) { - if (val >= 1.0) { - return this.format_num(val) + "s"; - } - - val *= 1000; - if (val >= 1.0) { - return this.format_num(val) + "ms"; - } - - val *= 1000; - if (val >= 1.0) { - return this.format_num(val) + "us"; - } - - val *= 1000; - if (val >= 1.0) { - return this.format_num(val) + "ns"; - } else { - return this.format_num(val) + "ns"; - } - } - }, - computed: { - systems() { - if (!this.data.pipeline) { - return []; - } - return this.data.pipeline.systems; - }, - fps() { - if (!this.data.pipeline) { - return 0; - } - return this.data.pipeline.fps.toFixed(1) + "Hz"; - }, - frame_time() { - if (!this.data.pipeline) { - return 0; - } - return this.to_unit(this.data.pipeline.frame_time_total); - }, - system_time() { - if (!this.data.pipeline) { - return 0; - } - return this.to_unit(this.data.pipeline.system_time_total); - }, - merge_time() { - if (!this.data.pipeline) { - return 0; - } - return this.to_unit(this.data.pipeline.merge_time_total); - } - }, - template: ` -
- - -
-
-
fps
-
- {{fps}} -
-
- -
-
frame time
-
- {{frame_time}} -
-
- -
-
system time
-
- {{system_time}} -
-
- -
-
merge time
-
- {{merge_time}} -
-
-
- -
-
-
- -
-
- Merge -
-
-
-
- ` -}); - -app.app_loaded("systems", [{ - name: "system-entity-graph", - url: "apps/systems/system_entity_graph.js" -}, { - name: "system-time-graph", - url: "apps/systems/system_time_graph.js" -}, { - name: "system", - url: "apps/systems/system.js" -}, { - name: "system-component", - url: "apps/systems/system_component.js" -}]); diff --git a/flecs-dash/etc/css/style.css b/flecs-dash/etc/css/style.css deleted file mode 100644 index 83e7308..0000000 --- a/flecs-dash/etc/css/style.css +++ /dev/null @@ -1,253 +0,0 @@ -body { - font-family: Roboto,Noto Sans,Noto,sans-serif; - font-size: 1.0em; - font-size: 16px; - background-color: #37393E; - color: #eee; - margin: 0px; -} - -#app { - position: relative; -} - -div.sidebar { - position: absolute; - background-color: #1E2022; - top: 40px; - width: 70px; - height: calc(100vh - 50px); - padding-top: 12px; -} - -div.sidebar-button-container { - position: relative; - height: 45px; - margin-bottom: 12px; -} - -div.sidebar-button { - border-radius: 10px; - margin-left: 12px; - width: 45px; - height: 45px; - cursor: pointer; - text-align: center; -} - -div.sidebar-selector { - position: absolute; - background-color: #5BE595; - top: 17px; - left: -5px; - height: 10px; - width: 4px; - border-radius: 0px 4px 4px 0px; - transition: left 100ms, height 150ms, top 150ms; -} - -div.sidebar-selector-active { - top: 2.3px; - height: 40px; - left: 0px; -} - -div.sidebar-selector-hover { - top: 12px; - height: 20px; - left: 0px; -} - -img.sidebar-icon { - width: 40px; - height: 40px; - margin-top: 3; -} - -div.content { - position: absolute; - width: calc(100% - 70px); - height: calc(100vh - 40px); - top: 40px; - left: 70px; - overflow-y: auto; -} - -div.play-controls { - background-color: rgb(23, 24, 26);; - position: absolute; - top: 0px; - width: 100%; - height: 40px; - box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); -} - -div.play-buttons { - position: relative; - width: 100px; - margin: 0 auto; - padding: 4px; -} - -div.play-button img { - width: 30px; - height: 30px; - float: left; - cursor: pointer; - background-color: #37393E; - margin: 1px; - border-radius: 2px; - transition: background-color 100ms; -} - -div.player-active img { - background-color: #777; -} - -div.perf-summary { - position: absolute; - top: 0px; - right: 0px; - width: 200px; - height: 40px; -} - -div.perf-clock { - position: relative; - float: left; - margin: 0 auto; - left: 10px; - top: -1px; - - padding: 2px; - padding-left: 10px; - padding-right: 4px; - font-size: 18px; - - border-radius: 5px; - border-color: #37393E; - border-style: solid; - border-width: 1px; - - background-color: #000; - color: #777; -} - -div.perf-clock-active { - color: #5BE595; -} - -div.perf-clock img { - position: relative; - top: 2px; - /* float: left; */ - - height: 17px; -} - -div.perf-fps { - position: relative; - top: 7px; - right: 35px; - width: 80px; - background-color: #000; - border-color: #37393E; - border-style: solid; - border-width: 1px; - border-radius: 5px; - min-height: 25px; -} - -span.perf-fps-value { - position: absolute; - border-radius: 5px; - background-color: #000; - font-size: 18px; - padding: 2px; - padding-left: 8px; -} - -span.perf-label { - position: absolute; - right: 0px; - background-color: #37393E; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; - font-size: 12px; - padding: 5px; - padding-top: 6px; -} - -span.perf-fps-ok { - color: #5BE595; -} - -div.perf-load { - position: absolute; - right: 10px; - top: 7px; - height: 25px; - width: 130px; - - border-color: #37393E; - border-style: solid; - border-width: 1px; - border-radius: 5px; - background-color: #000; -} - -div.perf-load svg { - position: absolute; - background-color: #000; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; -} - -div.metric-row:after { - position: relative; -} - -div.metric-row:after { - content: ""; - display: table; - clear: both; - margin: 0px; - padding: 0px; -} - -div.metric-column { - float: left; - width: 10%; - min-width: 150px; - margin-right: 0px !important; - margin-bottom: 0px !important; -} - -div.metric { - background-color: #1E2022; - color: #eee; - font-size: 18px; - padding: 10px; - margin: 10px; - - border-left-color: #181818; - border-left-style: solid; - border-left-width: 5px; -} - -div.metric-content { - font-size: 36px; - color: #aaa; -} - -div.metric-header { - text-transform: uppercase; -} - -input { - -webkit-appearance: none; - -moz-appearance: none; - border-style: none; - outline: none; - padding: 5px; -} diff --git a/flecs-dash/etc/favicon.png b/flecs-dash/etc/favicon.png deleted file mode 100644 index 1f741c9..0000000 Binary files a/flecs-dash/etc/favicon.png and /dev/null differ diff --git a/flecs-dash/etc/images/add.png b/flecs-dash/etc/images/add.png deleted file mode 100644 index 9ff4cb1..0000000 Binary files a/flecs-dash/etc/images/add.png and /dev/null differ diff --git a/flecs-dash/etc/images/bar_chart.png b/flecs-dash/etc/images/bar_chart.png deleted file mode 100644 index b314b1b..0000000 Binary files a/flecs-dash/etc/images/bar_chart.png and /dev/null differ diff --git a/flecs-dash/etc/images/clock.png b/flecs-dash/etc/images/clock.png deleted file mode 100644 index 3f7f956..0000000 Binary files a/flecs-dash/etc/images/clock.png and /dev/null differ diff --git a/flecs-dash/etc/images/close.png b/flecs-dash/etc/images/close.png deleted file mode 100644 index c779968..0000000 Binary files a/flecs-dash/etc/images/close.png and /dev/null differ diff --git a/flecs-dash/etc/images/delete.png b/flecs-dash/etc/images/delete.png deleted file mode 100644 index 84e7cd8..0000000 Binary files a/flecs-dash/etc/images/delete.png and /dev/null differ diff --git a/flecs-dash/etc/images/flecs.png b/flecs-dash/etc/images/flecs.png deleted file mode 100644 index c7e3125..0000000 Binary files a/flecs-dash/etc/images/flecs.png and /dev/null differ diff --git a/flecs-dash/etc/images/layers.png b/flecs-dash/etc/images/layers.png deleted file mode 100644 index 3c0baf3..0000000 Binary files a/flecs-dash/etc/images/layers.png and /dev/null differ diff --git a/flecs-dash/etc/images/nav.png b/flecs-dash/etc/images/nav.png deleted file mode 100644 index 3dea508..0000000 Binary files a/flecs-dash/etc/images/nav.png and /dev/null differ diff --git a/flecs-dash/etc/images/pause.png b/flecs-dash/etc/images/pause.png deleted file mode 100644 index 760cc55..0000000 Binary files a/flecs-dash/etc/images/pause.png and /dev/null differ diff --git a/flecs-dash/etc/images/play.png b/flecs-dash/etc/images/play.png deleted file mode 100644 index cc0604b..0000000 Binary files a/flecs-dash/etc/images/play.png and /dev/null differ diff --git a/flecs-dash/etc/images/save.png b/flecs-dash/etc/images/save.png deleted file mode 100644 index 0eb5680..0000000 Binary files a/flecs-dash/etc/images/save.png and /dev/null differ diff --git a/flecs-dash/etc/images/stop.png b/flecs-dash/etc/images/stop.png deleted file mode 100644 index 5a988dd..0000000 Binary files a/flecs-dash/etc/images/stop.png and /dev/null differ diff --git a/flecs-dash/etc/images/sync.png b/flecs-dash/etc/images/sync.png deleted file mode 100644 index a176d0b..0000000 Binary files a/flecs-dash/etc/images/sync.png and /dev/null differ diff --git a/flecs-dash/etc/images/table.png b/flecs-dash/etc/images/table.png deleted file mode 100644 index 406e041..0000000 Binary files a/flecs-dash/etc/images/table.png and /dev/null differ diff --git a/flecs-dash/etc/images/tree.png b/flecs-dash/etc/images/tree.png deleted file mode 100644 index bb6367a..0000000 Binary files a/flecs-dash/etc/images/tree.png and /dev/null differ diff --git a/flecs-dash/etc/images/usage.png b/flecs-dash/etc/images/usage.png deleted file mode 100644 index 1fbb26e..0000000 Binary files a/flecs-dash/etc/images/usage.png and /dev/null differ diff --git a/flecs-dash/etc/index.html b/flecs-dash/etc/index.html deleted file mode 100644 index ea8acf9..0000000 --- a/flecs-dash/etc/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - Flecs Dash - - - - - - - -
- - - -
- - - - - - - - - - - - diff --git a/flecs-dash/etc/js/app.js b/flecs-dash/etc/js/app.js deleted file mode 100644 index 848c46d..0000000 --- a/flecs-dash/etc/js/app.js +++ /dev/null @@ -1,136 +0,0 @@ - -Vue.config.devtools = true; - -var app = new Vue({ - el: '#app', - methods: { - // Request - request(method, url, onmsg, onloadend) { - const Http = new XMLHttpRequest(); - - Http.open(method, "http://" + url); - if (onloadend) { - Http.onloadend = function() { onloadend(Http); }; - } - Http.send(); - Http.onreadystatechange = (e)=>{ - if (Http.readyState == 4) { - if (Http.responseText && Http.responseText.length) { - if (onmsg) { - onmsg(JSON.parse(Http.responseText)); - } - } - } - } - }, - - // Request to own server - request_self(method, url, onmsg, onloadend) { - this.request(method, this.host + "/" + url, onmsg, onloadend); - }, - - set_host(host) { - this.host = host; - this.init(); - }, - - get(url, onmsg, onloadend) { - this.request_self("GET", url, onmsg, onloadend); - }, - - put(url, onmsg, onloadend) { - this.request_self("PUT", url, onmsg, onloadend); - }, - - post(url, onmsg, onloadend) { - this.request_self("POST", url, onmsg, onloadend); - }, - - delete(url, onmsg, onloadend) { - this.request_self("DELETE", url, onmsg, onloadend); - }, - - path_to_url(path) { - return path.replace(/\./g, "/"); - }, - - // Initialize application, send initial request for id of self - init() { - this.get("this", (msg) => { - this.server_id = msg.server_id; - this.get("scope/" + this.path_to_url(this.server_id) + "?include=flecs.dash.App", (msg) => { - this.apps = msg; - }); - }); - }, - - // Anything that needs to appen periodically - refresh() { }, - - // App select event selects a different application - app_select(event) { - this.app_load(event.name); - }, - - import(url) { - var app = document.getElementById(url); - if (!app) { - app = document.createElement("script"); - app.setAttribute("id", url); - app.setAttribute("src", url); - document.body.appendChild(app); - - return false - } else { - return true; - } - }, - - component_loaded(id) { - return Vue.options.components[id] != undefined; - }, - - // Load app resources - app_load(app_id) { - if (this.import("apps/" + app_id + "/" + app_id + ".js")) { - this.app_loaded(app_id); - } - }, - - // App is loaded - app_loaded(app_id, dependencies) { - var dependencies_resolved = true; - - // Load dependent components if any - if (dependencies) { - dependencies.forEach(d => { - if (!this.component_loaded(d.name)) { - app.import(d.url); - dependencies_resolved = false; - } - }); - } - - // If all dependencies are resolved, just load the app - if (dependencies_resolved) { - this.app = app_id; - } else { - // If not all dependencies are loaded, try again in a little bit - window.setTimeout(function() { - this.app_loaded(app_id, dependencies); - }.bind(this), 32); - } - } - }, - data: { - host: window.location.host, - app: "", - apps: [], - server_id: "" - } -}); - -window.onload = function() { - app.init(); - window.setInterval(app.refresh, 1000); -} diff --git a/flecs-dash/etc/js/appcontent.js b/flecs-dash/etc/js/appcontent.js deleted file mode 100644 index b132394..0000000 --- a/flecs-dash/etc/js/appcontent.js +++ /dev/null @@ -1,18 +0,0 @@ -Vue.component('appcontent', { - props: ['world', 'app'], - render: function(h) { - if (!this.app || this.app === "") { - return h('div'); - } else { - return h('div', { - attrs: {class: "content"} - }, [ - h('app-' + this.app, { - props: { - world: this.world - } - }) - ]); - } - } -}); diff --git a/flecs-dash/etc/js/perf_summary.js b/flecs-dash/etc/js/perf_summary.js deleted file mode 100644 index 76ab283..0000000 --- a/flecs-dash/etc/js/perf_summary.js +++ /dev/null @@ -1,182 +0,0 @@ - -Vue.component('perf-fps', { - props: ['data'], - data: function() { - return { - last_tick: 0, - last_fps: 0, - last_update: 0, - last_result: 0 - } - }, - computed: { - fps() { - if (!this.data) { - return 0; - } - - var d = new Date(); - var t = d.getTime(); - - if (t - this.last_update < 1000) { - return this.last_result; - } - - this.last_update = t; - - const fps = this.data.data["flecs.dash.monitor.Fps"]; - const tick = this.data.data["flecs.dash.monitor.Tick"]; - - let result = (fps.count - this.last_fps) / (tick.count - this.last_tick); - - this.last_fps = fps.count; - this.last_tick = tick.count; - - if (result < 0) { - result = 0; - } - - if (result > 1000000) { - this.last_result = (result / 1000000).toFixed(2) + "M"; - } else - if (result > 1000) { - this.last_result = (result / 1000).toFixed(2) + "K"; - } else if (result > 100) { - this.last_result = result.toFixed(0); - } else { - this.last_result = result.toFixed(1); - } - - return this.last_result; - }, - css() { - if (!this.data) { - return ""; - } - - const fps = this.data.data["flecs.dash.monitor.Fps"]; - if (this.fps >= fps.target * 0.9) { - return "perf-fps-ok"; - } - } - }, - template: ` -
-
- {{ fps }} - FPS -
-
- ` -}); - -Vue.component('perf-load', { - props: ['data'], - data: function() { - return { - last_total: 0, - last_frame: 0 - } - }, - computed: { - load() { - if (!this.data) { - return 100; - } - - const load = this.data.data["flecs.dash.monitor.Load"]; - - let result = (load.frame_time_count - this.last_frame) / (load.total_time_count - this.last_total); - this.last_frame = load.frame_time_count; - this.last_total = load.total_time_count; - - if (result < 0) { - result = 0; - } - - if (!result) { - result = 1; - } - - return (result * 100); - }, - css() { - return ""; - } - }, - template: ` -
- - - - - - - - - - Load -
- ` -}); - -Vue.component('perf-clock', { - props: ['data'], - methods: { - digit(num) { - if (num < 10) { - return "0" + num; - } else { - return num; - } - } - }, - computed: { - clock() { - if (!this.data) { - return "00:00:00.00"; - } - - const clock = this.data.data["flecs.dash.monitor.WorldClock"]; - - let hours = Math.floor(clock.world_time / 3600); - let minutes = Math.floor((clock.world_time - hours * 3600) / 60); - let seconds = Math.floor(clock.world_time - hours * 3600 - minutes * 60); - let remainder = Math.floor((clock.world_time - Math.floor(clock.world_time)) * 10); - - return this.digit(hours) + ":" + this.digit(minutes) + ":" + - this.digit(seconds) + "." + remainder; - }, - css() { - if (!this.data) { - return ""; - } - - const clock = this.data.data["flecs.dash.monitor.WorldClock"]; - if (clock.world_time != 0) { - return "perf-clock-active"; - } else { - return ""; - } - } - }, - template: ` -
- {{ clock }} - -
- ` -}); - -Vue.component('perf-summary', { - props: ['data'], - template: ` -
- -
- - -
-
- ` -}); diff --git a/flecs-dash/etc/js/periodic_request.js b/flecs-dash/etc/js/periodic_request.js deleted file mode 100644 index c6011cc..0000000 --- a/flecs-dash/etc/js/periodic_request.js +++ /dev/null @@ -1,36 +0,0 @@ - -class PeriodicRequest { - constructor(interval, callback, err_callback) { - this.error = false; - this.timer = undefined; - this.result = undefined; - this.interval = interval; - this.callback = callback; - this.err_callback = err_callback; - } - - request(url) { - app.get(url, (msg) => { - this.result = msg; - this.error = false; - this.callback(msg); - }, (Http) => { - if (!Http.status || Http.status >= 400) { - this.err_callback(Http.status); - this.error = true; - } - }); - } - - stopRequesting() { - this.result = undefined; - clearInterval(this.timer); - } - - startRequesting(url) { - this.stopRequesting(); - this.timer = window.setInterval(function() { - this.request(url); - }.bind(this), this.interval); - } -} diff --git a/flecs-dash/etc/js/play_controls.js b/flecs-dash/etc/js/play_controls.js deleted file mode 100644 index 3924eea..0000000 --- a/flecs-dash/etc/js/play_controls.js +++ /dev/null @@ -1,69 +0,0 @@ - -Vue.component('play-button', { - props: ["state", "icon"], - methods: { - clicked: function() { - this.$emit('click', {event: this.icon}); - }, - css() { - let result = "play-button"; - if (this.state == this.icon) { - result += " player-active"; - } - return result; - } - }, - template: ` -
- -
- ` -}); - -Vue.component('play-controls', { - mounted: function() { - this.request.startRequesting("entity/flecs/core/World"); - }, - beforeDestroy: function() { - this.stopRequesting(); - }, - data: function() { - return { - state: undefined, - request: new PeriodicRequest(100, this.on_recv_world, this.on_recv_err), - data: undefined - } - }, - methods: { - play: function(e) { - this.state = e.event; - app.put("player/" + e.event, (msg) => { }); - }, - on_recv_world(data) { - this.data = data; - if (!this.state) { - const state = this.data.data["flecs.player.Player"]; - if (state.state == "EcsPlayerPlay") { - this.state = "play"; - } else if (state.state == "EcsPlayerStop") { - this.state = "stop"; - } else if (state.state == "EcsPlayerPause") { - this.state = "pause"; - } - } - }, - on_recv_err() { - this.state = undefined; - } - }, - template: ` -
-
- - - -
- -
- ` - }); diff --git a/flecs-dash/etc/js/sidebar-button.js b/flecs-dash/etc/js/sidebar-button.js deleted file mode 100644 index d5ee4ca..0000000 --- a/flecs-dash/etc/js/sidebar-button.js +++ /dev/null @@ -1,46 +0,0 @@ -Vue.component('sidebar-button', { - props: { - app: String, - icon: String, - active_app: String - }, - data: function() { - return { - hover: false - } - }, - methods: { - selector_css() { - let result = "sidebar-selector"; - if (this.app == this.active_app) { - result += " sidebar-selector-active"; - } else if (this.hover) { - result += " sidebar-selector-hover"; - } - return result; - }, - button_css() { - return "sidebar-button"; - }, - select_app: function() { - this.$emit('select-app', {name: this.app}); - }, - set_hover(hover) { - this.hover = hover; - } - }, - template: ` - - ` -}); diff --git a/flecs-dash/etc/js/sidebar.js b/flecs-dash/etc/js/sidebar.js deleted file mode 100644 index 707d2e5..0000000 --- a/flecs-dash/etc/js/sidebar.js +++ /dev/null @@ -1,59 +0,0 @@ -Vue.component('sidebar', { - props: { - app: String, - apps: Array - }, - methods: { - select_app(event) { - this.$emit("app-select", event); - } - }, - computed: { - app_names: function() { - let ids = []; - - if (!this.apps) { - return; - } - - this.apps.forEach((table) => { - if (table.data && table.data.Name) { - table.data.Name.forEach((app) => { - ids.push(app.value); - }); - } - }); - - return ids; - }, - app_icons: function() { - let ids = []; - - if (!this.apps) { - return; - } - - this.apps.forEach((table) => { - if (table.data && table.data["flecs.dash.App"]) { - table.data["flecs.dash.App"].forEach((app) => { - ids.push(app.icon); - }); - } - }); - - return ids; - } - }, - template: ` - - ` -}); - \ No newline at end of file diff --git a/flecs-dash/etc/js/vue.js b/flecs-dash/etc/js/vue.js deleted file mode 100644 index 41094e0..0000000 --- a/flecs-dash/etc/js/vue.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Vue.js v2.6.12 - * (c) 2014-2020 Evan You - * Released under the MIT License. - */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Vue=t()}(this,function(){"use strict";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function l(e){return null==e?"":Array.isArray(e)||s(e)&&e.toString===a?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function y(e,t){return m.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=g(function(e){return e.replace(_,function(e,t){return t?t.toUpperCase():""})}),$=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),w=/\B([A-Z])/g,C=g(function(e){return e.replace(w,"-$1").toLowerCase()});var x=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n0,Z=J&&J.indexOf("edge/")>0,G=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),X=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),Y={}.watch,Q=!1;if(z)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===B&&(B=!z&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),B},ne=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,oe="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ie="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=S,se=0,ce=function(){this.id=se++,this.subs=[]};ce.prototype.addSub=function(e){this.subs.push(e)},ce.prototype.removeSub=function(e){h(this.subs,e)},ce.prototype.depend=function(){ce.target&&ce.target.addDep(this)},ce.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===C(e)){var c=Pe(String,i.type);(c<0||s0&&(st((u=e(u,(a||"")+"_"+c))[0])&&st(f)&&(s[l]=he(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?st(f)?s[l]=he(f.text+u):""!==u&&s.push(he(u)):st(u)&&st(f)?s[l]=he(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function st(e){return n(e)&&n(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=pt(n,c,t[c]))}else i={};for(var u in n)u in i||(i[u]=dt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=i),R(i,"$stable",a),R(i,"$key",s),R(i,"$hasNormal",o),i}function pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:at(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function dt(e,t){return function(){return e[t]}}function vt(e,t){var r,i,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),i=0,a=e.length;idocument.createEvent("Event").timeStamp&&(sn=function(){return cn.now()})}function un(){var e,t;for(an=sn(),rn=!0,Qt.sort(function(e,t){return e.id-t.id}),on=0;onon&&Qt[n].id>e.id;)n--;Qt.splice(n+1,0,e)}else Qt.push(e);nn||(nn=!0,Ye(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Re(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:S,set:S};function dn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Me(o,t,n,e);xe(r,o,a),o in e||dn(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?S:x(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){le();try{return e.call(t,t)}catch(e){return Re(e,t,"data()"),{}}finally{fe()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&y(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&dn(e,"_data",o))}var a;Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||S,S,hn)),i in e||mn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function An(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=xn(a.componentOptions);s&&!t(s)&&On(n,o,r,i)}}}function On(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,h(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=bn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=De($n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&qt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ut(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return Pt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Pt(t,e,n,r,i,!0)};var o=r&&r.data;xe(t,"$attrs",o&&o.attrs||e,null,!0),xe(t,"$listeners",n._parentListeners||e,null,!0)}(n),Yt(n,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach(function(n){xe(e,n,t[n])}),$e(!0))}(n),vn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Yt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(wn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(s(t))return _n(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Re(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(wn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?k(t):t;for(var n=k(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&On(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ae,extend:A,mergeOptions:De,defineReactive:xe},e.set=ke,e.delete=Ae,e.nextTick=Ye,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),M.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,A(e.options.components,Tn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),Cn(e),function(e){M.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:te}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:Tt}),wn.version="2.6.12";var En=p("style,class"),Nn=p("input,textarea,option,select,progress"),jn=function(e,t,n){return"value"===n&&Nn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Dn=p("contenteditable,draggable,spellcheck"),Ln=p("events,caret,typing,plaintext-only"),Mn=function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"},In=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fn="http://www.w3.org/1999/xlink",Pn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Rn=function(e){return Pn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Bn(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Un(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=Un(t,r.data));return function(e,t){if(n(e)||n(t))return zn(e,Vn(t));return""}(t.staticClass,t.class)}function Un(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Vn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i-1?hr(e,t,n):In(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Dn(t)?e.setAttribute(t,Mn(t,n)):Pn(t)?Hn(n)?e.removeAttributeNS(Fn,Rn(t)):e.setAttributeNS(Fn,t,n):hr(e,t,n)}function hr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(q&&!W&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var mr={create:dr,update:dr};function yr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Bn(r),c=i._transitionClasses;n(c)&&(s=zn(s,Vn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var gr,_r,br,$r,wr,Cr,xr={create:yr,update:yr},kr=/[\w).+\-_$\]]/;function Ar(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&kr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,$r),key:'"'+e.slice($r+1)+'"'}:{exp:e,key:null};_r=e,$r=wr=Cr=0;for(;!zr();)Vr(br=Ur())?Jr(br):91===br&&Kr(br);return{exp:e.slice(0,wr),key:e.slice(wr+1,Cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ur(){return _r.charCodeAt(++$r)}function zr(){return $r>=gr}function Vr(e){return 34===e||39===e}function Kr(e){var t=1;for(wr=$r;!zr();)if(Vr(e=Ur()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){Cr=$r;break}}function Jr(e){for(var t=e;!zr()&&(e=Ur())!==t;);}var qr,Wr="__r",Zr="__c";function Gr(e,t,n){var r=qr;return function i(){null!==t.apply(null,arguments)&&Qr(e,i,n,r)}}var Xr=Ve&&!(X&&Number(X[1])<=53);function Yr(e,t,n,r){if(Xr){var i=an,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,Q?{capture:n,passive:r}:n)}function Qr(e,t,n,r){(r||qr).removeEventListener(e,t._wrapper||t,n)}function ei(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};qr=r.elm,function(e){if(n(e[Wr])){var t=q?"change":"input";e[t]=[].concat(e[Wr],e[t]||[]),delete e[Wr]}n(e[Zr])&&(e.change=[].concat(e[Zr],e.change||[]),delete e[Zr])}(i),rt(i,o,Yr,Qr,Gr,r.context),qr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=A({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=t(o)?"":String(o);ii(a,u)&&(a.value=u)}else if("innerHTML"===i&&qn(a.tagName)&&t(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+o+"";for(var l=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.number)return f(r)!==f(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var oi={create:ri,update:ri},ai=g(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function si(e){var t=ci(e.style);return e.staticStyle?A(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?O(e):"string"==typeof e?ai(e):e}var ui,li=/^--/,fi=/\s*!important$/,pi=function(e,t,n){if(li.test(t))e.style.setProperty(t,n);else if(fi.test(n))e.style.setProperty(C(t),n.replace(fi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(yi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&A(t,$i(e.name||"v")),A(t,e),t}return"string"==typeof e?$i(e):void 0}}var $i=g(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),wi=z&&!W,Ci="transition",xi="animation",ki="transition",Ai="transitionend",Oi="animation",Si="animationend";wi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Si="webkitAnimationEnd"));var Ti=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ei(e){Ti(function(){Ti(e)})}function Ni(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gi(e,t))}function ji(e,t){e._transitionClasses&&h(e._transitionClasses,t),_i(e,t)}function Di(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ci?Ai:Si,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Ci,l=a,f=o.length):t===xi?u>0&&(n=xi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ci:xi:null)?n===Ci?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ci&&Li.test(r[ki+"Property"])}}function Ii(e,t){for(;e.length1}function Ui(e,t){!0!==t.data.show&&Pi(t)}var zi=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;ov?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(r,p,v)}(p,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):n(h)?$(h,0,h.length-1):n(e.text)&&u.setTextContent(p,""):e.text!==i.text&&u.setTextContent(p,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o-1,a.selected!==o&&(a.selected=o);else if(N(Wi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function qi(e,t){return t.every(function(t){return!N(t,e)})}function Wi(e){return"_value"in e?e._value:e.value}function Zi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Xi(e.target,"input"))}function Xi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Yi(e){return!e.componentInstance||e.data&&e.data.transition?e:Yi(e.componentInstance._vnode)}var Qi={model:Vi,show:{bind:function(e,t,n){var r=t.value,i=(n=Yi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Yi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,function(){e.style.display=e.__vOriginalDisplay}):Ri(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},eo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function to(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?to(zt(t.children)):e}function no(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[b(o)]=i[o];return t}function ro(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var io=function(e){return e.tag||Ut(e)},oo=function(e){return"show"===e.name},ao={name:"transition",props:eo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=to(o);if(!a)return o;if(this._leaving)return ro(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=no(this),u=this._vnode,l=to(u);if(a.data.directives&&a.data.directives.some(oo)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!Ut(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=A({},c);if("out-in"===r)return this._leaving=!0,it(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ro(e,o);if("in-out"===r){if(Ut(a))return u;var p,d=function(){p()};it(c,"afterEnter",d),it(c,"enterCancelled",d),it(f,"delayLeave",function(e){p=e})}}return o}}},so=A({tag:String,moveClass:String},eo);function co(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function uo(e){e.data.newPos=e.elm.getBoundingClientRect()}function lo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Gn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Gn[e]=/HTMLUnknownElement/.test(t.toString())},A(wn.options.directives,Qi),A(wn.options.components,fo),wn.prototype.__patch__=z?zi:S,wn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ve),Yt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,S,{before:function(){e._isMounted&&!e._isDestroyed&&Yt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Yt(e,"mounted")),e}(this,e=e&&z?Yn(e):void 0,t)},z&&setTimeout(function(){F.devtools&&ne&&ne.emit("init",wn)},0);var po=/\{\{((?:.|\r?\n)+?)\}\}/g,vo=/[-.*+?^${}()|[\]\/\\]/g,ho=g(function(e){var t=e[0].replace(vo,"\\$&"),n=e[1].replace(vo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var mo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Fr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ir(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var yo,go={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Fr(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=Ir(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},_o=function(e){return(yo=yo||document.createElement("div")).innerHTML=e,yo.textContent},bo=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),$o=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Co=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+P.source+"]*",Ao="((?:"+ko+"\\:)?"+ko+")",Oo=new RegExp("^<"+Ao),So=/^\s*(\/?)>/,To=new RegExp("^<\\/"+Ao+"[^>]*>"),Eo=/^]+>/i,No=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=p("pre,textarea",!0),Ro=function(e,t){return e&&Po(e)&&"\n"===t[0]};function Ho(e,t){var n=t?Fo:Io;return e.replace(n,function(e){return Mo[e]})}var Bo,Uo,zo,Vo,Ko,Jo,qo,Wo,Zo=/^@|^v-on:/,Go=/^v-|^@|^:|^#/,Xo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qo=/^\(|\)$/g,ea=/^\[.*\]$/,ta=/:(.*)$/,na=/^:|^\.|^v-bind:/,ra=/\.[^.\]]+(?=[^\]]*$)/g,ia=/^v-slot(:|$)|^#/,oa=/[\r\n]/,aa=/\s+/g,sa=g(_o),ca="_empty_";function ua(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ma(t),rawAttrsMap:{},parent:n,children:[]}}function la(e,t){Bo=t.warn||Sr,Jo=t.isPreTag||T,qo=t.mustUseProp||T,Wo=t.getTagNamespace||T;t.isReservedTag;zo=Tr(t.modules,"transformNode"),Vo=Tr(t.modules,"preTransformNode"),Ko=Tr(t.modules,"postTransformNode"),Uo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function u(e){if(l(e),s||e.processed||(e=fa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&da(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&da(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter(function(e){return!e.slotScope}),l(e),e.pre&&(s=!1),Jo(e.tag)&&(c=!1);for(var f=0;f]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,Do(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ro(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(No.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(jo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(Eo);if(m){C(m[0].length);continue}var y=e.match(To);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),Ro(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(To.test($)||Oo.test($)||No.test($)||jo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(Oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(So))&&(r=e.match(xo)||e.match(Co));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:Bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,l,f){var p=r&&r.ns||Wo(e);q&&"svg"===p&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Mr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Er(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Mr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Wr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(t,l);c&&(f="if($event.target.composing)return;"+f),Er(e,"value","("+t+")"),Mr(e,u,f,null,!0),(s||a)&&Mr(e,"blur","$forceUpdate()")}(e,r,i);else if(!F.isReservedTag(o))return Hr(e,r,i),!1;return!0},text:function(e,t){t.value&&Er(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Er(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:bo,mustUseProp:jn,canBeLeftOpenTag:$o,isReservedTag:Wn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ba)},xa=g(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function ka(e,t){e&&($a=xa(t.staticKeys||""),wa=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||d(e.tag)||!wa(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every($a)))}(t);if(1===t.type){if(!wa(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Oa=/\([^)]*?\);*$/,Sa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ta={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ea={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Da(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=La(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function La(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return La(e)}).join(",")+"]";var t=Sa.test(e.value),n=Aa.test(e.value),r=Sa.test(e.value.replace(Oa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Ta[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ma).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ma(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ta[e],r=Ea[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ia={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:S},Fa=function(e){this.options=e,this.warn=e.warn||Sr,this.transforms=Tr(e.modules,"transformCode"),this.dataGenFns=Tr(e.modules,"genData"),this.directives=A(A({},Ia),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(e,t){var n=new Fa(t);return{render:"with(this){return "+(e?Ra(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ra(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ha(e,t);if(e.once&&!e.onceProcessed)return Ba(e,t);if(e.for&&!e.forProcessed)return za(e,t);if(e.if&&!e.ifProcessed)return Ua(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=qa(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ga((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:b(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:qa(t,n,!0);return"_c("+e+","+Va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Va(e,t));var i=e.inlineTemplate?null:qa(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ga(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ka(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ka))}function Ja(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ua(e,t,Ja,"null");if(e.for&&!e.forProcessed)return za(e,t,Ja);var r=e.slotScope===ca?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(qa(e,t)||"undefined")+":undefined":qa(e,t)||"undefined":Ra(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function qa(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ra)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',ts.innerHTML.indexOf(" ")>0}var os=!!z&&is(!1),as=!!z&&is(!0),ss=g(function(e){var t=Yn(e);return t&&t.innerHTML}),cs=wn.prototype.$mount;return wn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ss(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=rs(r,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:as,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return cs.call(this,e,t)},wn.compile=rs,wn}); \ No newline at end of file