-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
379 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
<Ui::Modal @onHide={{@onHide}}> | ||
<h2 class="uk-modal-title" for="current-url"> | ||
<calcite-modal | ||
aria-labelledby="modal-title" | ||
resize="vertical" | ||
open | ||
{{on "calciteModalClose" @onHide}} | ||
> | ||
<div slot="header" id="modal-title"> | ||
{{t "save_modal.title"}} | ||
</h2> | ||
<p> | ||
{{t "save_modal.info" currentUrl=@currentUrl htmlSafe=true}} | ||
</p> | ||
</div> | ||
<div slot="content"> | ||
<p> | ||
{{t "save_modal.info" currentUrl=@currentUrl htmlSafe=true}} | ||
</p> | ||
|
||
<Ui::TextArea {{on "click" this.selectAll}} rows="15" id="current-url" readonly @value={{@currentUrl}} /> | ||
|
||
<button class="uk-button uk-button-primary uk-align-center uk-modal-close" type="button"> | ||
<calcite-text-area | ||
label={{t "save_modal.title"}} | ||
{{on "click" this.selectAll}} | ||
value={{@currentUrl}} | ||
rows="10" | ||
read-only | ||
/> | ||
</div> | ||
<calcite-button {{on "click" @onHide}} slot="primary" width="full"> | ||
{{t "save_modal.close"}} | ||
</button> | ||
</Ui::Modal> | ||
</calcite-button> | ||
</calcite-modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
<ul uk-tab animation='uk-animation-fade'> | ||
{{#each this.tabs as |tab|}} | ||
<li class={{if (eq this.activeTab tab) 'uk-active'}} data-tab-item={{tab}}> | ||
<a href='#' {{on 'click' (fn (mut this.currentTab) tab)}}> | ||
{{t (concat 'settings_form.tabs.' tab)}} | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
<div> | ||
{{#if (eq this.activeTab 'settings')}} | ||
<SettingsForm::Settings @model={{@model}} /> | ||
{{else if (eq this.activeTab 'font')}} | ||
<SettingsForm::Font @model={{@model}} /> | ||
{{else if (eq this.activeTab 'advanced')}} | ||
<calcite-block collapsible open heading={{t 'settings_form.tabs.settings.heading'}} description={{t 'settings_form.tabs.settings.description'}}> | ||
<calcite-icon scale="s" slot="icon" icon="sliders"></calcite-icon> | ||
<SettingsForm::Settings @model={{@model}} /> | ||
</calcite-block> | ||
|
||
<calcite-block collapsible heading={{t 'settings_form.tabs.font.heading'}} description={{t 'settings_form.tabs.font.description'}}> | ||
<calcite-icon scale="s" slot="icon" icon="description"></calcite-icon> | ||
<SettingsForm::Font @model={{@model}} /> | ||
</calcite-block> | ||
|
||
{{#if this.showAdvancedSettings}} | ||
<calcite-block collapsible heading={{t 'settings_form.tabs.advanced.heading'}} description={{t 'settings_form.tabs.advanced.description'}}> | ||
<calcite-icon scale="s" slot="icon" icon="plus"></calcite-icon> | ||
<SettingsForm::AdvancedSettings @model={{@model}} /> | ||
{{/if}} | ||
</div> | ||
</calcite-block> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div | ||
<canvas | ||
...attributes | ||
{{three-renderer @mesh parentSize=@parentSize nearCamera=@nearCamera}} | ||
> | ||
</div> | ||
</canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{{#if this.meshSize}} | ||
<p ...attributes> | ||
{{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) | ||
}} | ||
</p> | ||
{{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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.