diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-24 19:19:12 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-24 19:19:12 +1000 |
| commit | 45bca977157084e11aaa2554ca3a2a403cedcfdb (patch) | |
| tree | c99abbb4c7c478cd3341dfc48853245e27e7ce65 /src/App.vue | |
| parent | bce4ab3facf63f70a0dd3cefa1f8c82453dba2d4 (diff) | |
Move utility functions into util.ts
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index eae0a16..a8c98f8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,13 +14,12 @@ import SearchIcon from './components/icon/SearchIcon.vue'; import PlayIcon from './components/icon/PlayIcon.vue'; import SettingsIcon from './components/icon/SettingsIcon.vue'; import HelpIcon from './components/icon/HelpIcon.vue'; -// Classes and types +// Other // Note: Import paths lack a .ts or .js extension because .ts makes vue-tsc complain, and .js makes vite complain import {TolNode, TolMap, UiOptions, Action} from './lib'; import {LayoutNode, LayoutOptions, LayoutTreeChg} from './layout'; -// Functions -import {arraySum, randWeightedChoice, getScrollBarWidth, getBreakpoint} from './lib'; import {initLayoutTree, initLayoutMap, tryLayout} from './layout'; +import {arraySum, randWeightedChoice, getScrollBarWidth, getBreakpoint} from './util'; // Type representing auto-mode actions type AutoAction = 'move across' | 'move down' | 'move up' | Action; |
