diff --git a/app/app.js b/app/app.js
index c4a7471..7bb1d8f 100644
--- a/app/app.js
+++ b/app/app.js
@@ -3,6 +3,19 @@ import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'text2stl/config/environment';
+import '@esri/calcite-components/dist/components/calcite-button';
+import '@esri/calcite-components/dist/components/calcite-shell';
+import '@esri/calcite-components/dist/components/calcite-shell-panel';
+import '@esri/calcite-components/dist/components/calcite-action-bar';
+import '@esri/calcite-components/dist/components/calcite-block';
+import '@esri/calcite-components/dist/components/calcite-panel';
+import '@esri/calcite-components/dist/components/calcite-loader';
+import '@esri/calcite-components/dist/components/calcite-notice';
+import '@esri/calcite-components/dist/components/calcite-modal';
+import '@esri/calcite-components/dist/components/calcite-text-area';
+import '@esri/calcite-components/dist/components/calcite-label';
+import '@esri/calcite-components/dist/components/calcite-switch';
+
export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
diff --git a/app/components/save-modal.hbs b/app/components/save-modal.hbs
index 2a14d61..fd850b9 100644
--- a/app/components/save-modal.hbs
+++ b/app/components/save-modal.hbs
@@ -1,14 +1,26 @@
-
- {{t "save_modal.info" currentUrl=@currentUrl htmlSafe=true}}
-
+ {{t "save_modal.info" currentUrl=@currentUrl htmlSafe=true}}
+
+
- {{t "three_preview.size" - x=(float-to-fixed this.meshSize.x 1) - y=(float-to-fixed this.meshSize.y 1) - z=(float-to-fixed this.meshSize.z 1) - }} -
+ {{t "three_preview.size" + x=(float-to-fixed this.meshSize.x 1) + y=(float-to-fixed this.meshSize.y 1) + z=(float-to-fixed this.meshSize.z 1) + }} {{/if}} \ No newline at end of file diff --git a/app/index.html b/app/index.html index 91af812..51451fb 100644 --- a/app/index.html +++ b/app/index.html @@ -12,7 +12,7 @@ {{content-for "head-footer"}} - + {{content-for "loader"}} {{content-for "body"}} diff --git a/app/initializers/calcite-components.ts b/app/initializers/calcite-components.ts new file mode 100644 index 0000000..54b4121 --- /dev/null +++ b/app/initializers/calcite-components.ts @@ -0,0 +1,16 @@ +import { setAssetPath } from '@esri/calcite-components/dist/components'; + +import config from 'text2stl/config/environment'; +const { rootURL, environment } = config; + +setAssetPath( + environment === 'development' + ? `${window.location.origin}${rootURL}assets/calcite/` + : `${rootURL}assets/calcite/`, +); + +export function initialize(/* application */) {} + +export default { + initialize, +}; diff --git a/app/modifiers/three-renderer.ts b/app/modifiers/three-renderer.ts index d1139a5..ebd0b09 100644 --- a/app/modifiers/three-renderer.ts +++ b/app/modifiers/three-renderer.ts @@ -25,9 +25,9 @@ interface ThreeRendererModifierSignature { } export default class ThreeRendererModifier extends Modifier