diff --git a/m101-supernova/src/Gallery.vue b/common/src/components/Gallery.vue similarity index 76% rename from m101-supernova/src/Gallery.vue rename to common/src/components/Gallery.vue index e1b83703..72f2e1ac 100644 --- a/m101-supernova/src/Gallery.vue +++ b/common/src/components/Gallery.vue @@ -193,115 +193,116 @@ export default defineComponent({ - diff --git a/common/src/components/IconButton.vue b/common/src/components/IconButton.vue index 0d48beee..5a82ef1b 100644 --- a/common/src/components/IconButton.vue +++ b/common/src/components/IconButton.vue @@ -120,13 +120,13 @@ export default defineComponent({ color: var(--focus-color); border-color: var(--focus-color); } -} -.active { - box-shadow: 0px 0px 10px 3px var(--color); + &.active { + box-shadow: 0px 0px 10px 3px var(--color); - &:focus { - box-shadow: 0px 0px 10px 3px var(--focus-color); + &:focus { + box-shadow: 0px 0px 10px 3px var(--focus-color); + } } } diff --git a/common/src/index.ts b/common/src/index.ts index ee1ffddc..18f6b871 100644 --- a/common/src/index.ts +++ b/common/src/index.ts @@ -2,13 +2,13 @@ import { KeyboardControlSettings } from "./keyboard"; import MiniDSBase from "./components/MiniDSBase"; import IconButton from "./components/IconButton.vue"; import { BackgroundImageset, skyBackgroundImagesets } from "./background"; -//import Gallery from "./components/Gallery.vue"; +import Gallery from "./components/Gallery.vue"; export { BackgroundImageset, KeyboardControlSettings, MiniDSBase, - //Gallery, + Gallery, IconButton, skyBackgroundImagesets }; diff --git a/common/vue.config.js b/common/vue.config.js index 96cbd144..d596c4a6 100644 --- a/common/vue.config.js +++ b/common/vue.config.js @@ -23,6 +23,17 @@ module.exports = defineConfig({ return opts; }); } + + // Keep the very big WWT engine external + config.externals({ + '@wwtelescope/engine': { + 'amd': '@wwtelescope/engine', // typeof define === 'function' && define.amd + 'commonjs2': '@wwtelescope/engine', // typeof exports === 'object' && typeof module === 'object' + 'commonjs': '@wwtelescope/engine', // typeof exports === 'object' + 'root': 'wwtlib' // none of the above: browser mode using global variables + } + }); + }, // TODO: For some reason we're having trouble loading chunks diff --git a/m101-supernova/src/main.ts b/m101-supernova/src/main.ts index d6618697..5be9d07f 100644 --- a/m101-supernova/src/main.ts +++ b/m101-supernova/src/main.ts @@ -11,8 +11,7 @@ import d3Scatter from "./d3-scatter.vue"; import ConstellationIcon from "./ConstellationIcon.vue"; import { IconButton } from "@minids/common"; -import Gallery from "./Gallery.vue"; -// import { Gallery } from "@minids/common"; +import { Gallery } from "@minids/common"; import "./polyfills";