Skip to content

Commit

Permalink
feat: change point of reference inside helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Erslev Milfred committed Mar 7, 2023
1 parent b2a8620 commit 5445c97
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
<div>Test?</div>
</div>
</template>

<script>
import { makeThemeUtilities, } from '../components/ThemeConfiguration/helpers';
console.log(makeThemeUtilities);
</script>
4 changes: 1 addition & 3 deletions components/ThemeConfiguration/ThemeConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ const { minify } = defaultConfig;
The component does also also allow for a configuration to be
passed in through a prop, but this shouldn't be the way, and
is mainly done for future demo site.
*The handling of getting-from-the-site-object is not developed yet
Also colors aren't currently handled.
*/
const observedData = ref({
config: {},
});
export const _defaultConfig = defaultConfig;
export const config = observedData.value.config;
export default defineNuxtComponent({
name: 'ThemeConfiguration',
Expand Down
4 changes: 2 additions & 2 deletions components/ThemeConfiguration/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Last modified: 2023/03/07 09:44:08
import { default as defaultConfig } from "~/assets/js/theme-configuration.default.js";
// Last modified: 2023/03/07 11:18:43
import { _defaultConfig as defaultConfig } from "./ThemeConfiguration.vue";

export {
sanitizeKey,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@limbo-works/theme-configuration",
"type": "module",
"version": "0.1.5",
"version": "0.1.6",
"main": "./nuxt.config.js",
"scripts": {
"dev": "nuxi prepare & nuxi dev .playground",
Expand Down

0 comments on commit 5445c97

Please sign in to comment.