Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: limbo-works/Limbo.Nuxt.ThemeConfiguration
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.6
Choose a base ref
...
head repository: limbo-works/Limbo.Nuxt.ThemeConfiguration
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.7
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 7, 2023

  1. feat: dont import config in helpers

    Simon Erslev Milfred committed Mar 7, 2023
    Copy the full SHA
    fb0bf1a View commit details
Showing with 4 additions and 10 deletions.
  1. +0 −1 components/ThemeConfiguration/ThemeConfiguration.vue
  2. +3 −5 components/ThemeConfiguration/helpers.js
  3. +1 −4 package.json
1 change: 0 additions & 1 deletion components/ThemeConfiguration/ThemeConfiguration.vue
Original file line number Diff line number Diff line change
@@ -31,7 +31,6 @@ const observedData = ref({
config: {},
});
export const _defaultConfig = defaultConfig;
export const config = observedData.value.config;
export default defineNuxtComponent({
name: 'ThemeConfiguration',
8 changes: 3 additions & 5 deletions components/ThemeConfiguration/helpers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Last modified: 2023/03/07 11:18:43
import { _defaultConfig as defaultConfig } from "./ThemeConfiguration.vue";

// Last modified: 2023/03/07 11:30:25
export {
sanitizeKey,
makeThemeUtilities,
@@ -14,8 +12,8 @@ function sanitizeKey(key) {

// Down here we have some practical functions (shouldn't be altered)
// Function to generate the tailwind utility values.
function makeThemeUtilities() {
const config = cloneDeep(defaultConfig);
function makeThemeUtilities(config) {
config = cloneDeep(config);
if (config.fontSize) {
const fontSizeUtils = restructureFontSizeObject(config.fontSize);
delete config.fontSize;
5 changes: 1 addition & 4 deletions 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.6",
"version": "0.1.7",
"main": "./nuxt.config.js",
"scripts": {
"dev": "nuxi prepare & nuxi dev .playground",
@@ -16,8 +16,5 @@
"eslint": "^8.28.0",
"nuxt": "^3.0.0",
"typescript": "^4.9.3"
},
"dependencies": {
"deepmerge": "^4.3.0"
}
}