Skip to content

Commit 25a5316

Browse files
Merge branch 'main' into dev
2 parents 17bf699 + 6690ac8 commit 25a5316

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ npm i @wdns/vuetify-inline-fields
5858

5959
## Change Log
6060

61-
[CHANGELOG](https://github.com/webdevnerdstuff/vuetify-inline-fields/blob/master/CHANGELOG.md)
61+
[CHANGELOG](https://github.com/webdevnerdstuff/vuetify-inline-fields/blob/main/CHANGELOG.md)
6262

6363

6464
## License
6565

6666
Copyright (c) 2023 WebDevNerdStuff
67-
Licensed under the [MIT license](https://github.com/webdevnerdstuff/vuetify-inline-fields/blob/master/LICENSE.md).
67+
Licensed under the [MIT license](https://github.com/webdevnerdstuff/vuetify-inline-fields/blob/main/LICENSE.md).
6868

6969

7070
## Legal

dist/vuetify-inline-fields.cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuetify-inline-fields.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useTheme as Sl } from "vuetify";
33
import { useWindowSize as oi } from "@vueuse/core";
44
/**
55
* @name @wdns/vuetify-inline-fields
6-
* @version 1.0.0-beta-1.12
6+
* @version 1.0.0-beta-1.14
77
* @description Vuetify Inline Fields Component Library offers a comprehensive collection of reusable UI components to create elegant and efficient inline form fields within your applications.
88
* @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! <[email protected]> (https://webdevnerdstuff.com)
99
* @copyright Copyright 2023, WebDevNerdStuff

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wdns/vuetify-inline-fields",
3-
"version": "1.0.0-beta-1.12",
3+
"version": "1.0.0-beta-1.14",
44
"description": "Vuetify Inline Fields Component Library offers a comprehensive collection of reusable UI components to create elegant and efficient inline form fields within your applications.",
55
"private": false,
66
"publishConfig": {

src/documentation/sections/LicenseSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<br />
2323
Licensed under the
2424
<a
25-
:href="`${links.repo}/blob/master/LICENSE.md`"
25+
:href="`${links.github}/blob/main/LICENSE.md`"
2626
target="_blank"
2727
>
2828
MIT License

src/stores/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import packageJson from '@root/package.json';
33

44

55
export const useCoreStore = defineStore('core', () => {
6-
const packageName = packageJson.name;
7-
const storageName = 'vuetify-inline-fields';
6+
const scopedPackageName = packageJson.name;
7+
const packageName = scopedPackageName.split('/')[1];
88

99
// Links //
1010
const repoBaseUrl = `https://github.com/webdevnerdstuff/${packageName}`;
@@ -14,7 +14,7 @@ export const useCoreStore = defineStore('core', () => {
1414
github: repoBaseUrl,
1515
githubProfile: 'https://github.com/webdevnerdstuff',
1616
license: `${repoBaseUrl}/blob/main/LICENSE.md`,
17-
npm: `https://www.npmjs.com/package/${packageName}`,
17+
npm: `https://www.npmjs.com/package/${scopedPackageName}`,
1818
vue: 'https://vuejs.org/',
1919
vueUse: 'https://vueuse.org/',
2020
vuetify: 'https://vuetifyjs.com/',
@@ -23,29 +23,29 @@ export const useCoreStore = defineStore('core', () => {
2323

2424
const actions = {
2525
setLocalStorage(val: string): string {
26-
const oldValue = localStorage.getItem(storageName);
26+
const oldValue = localStorage.getItem(packageName);
2727
const newValue = val ?? oldValue;
2828

29-
localStorage.setItem(storageName, newValue);
29+
localStorage.setItem(packageName, newValue);
3030
return newValue;
3131
},
3232
setTheme(val: string): string {
3333
const themeName = val === 'dark' ? 'light' : 'dark';
34-
const currentTheme = localStorage.getItem(`${storageName}-theme`);
34+
const currentTheme = localStorage.getItem(`${packageName}-theme`);
3535
const newTheme = themeName ?? currentTheme;
3636

37-
localStorage.setItem(`${storageName}-theme`, newTheme);
37+
localStorage.setItem(`${packageName}-theme`, newTheme);
3838
return newTheme;
3939
},
4040
};
4141

4242
const getters = {
4343
getLocalStorage: () => (): unknown => {
44-
const value = localStorage.getItem(storageName);
44+
const value = localStorage.getItem(packageName);
4545
return value;
4646
},
4747
getTheme: () => {
48-
const value = localStorage.getItem(`${storageName}-theme`);
48+
const value = localStorage.getItem(`${packageName}-theme`);
4949
return value;
5050
},
5151
};
@@ -55,7 +55,7 @@ export const useCoreStore = defineStore('core', () => {
5555
...getters,
5656
links,
5757
package: packageJson,
58+
packageName,
5859
pluginVersion: packageJson.version,
59-
storageName,
6060
};
6161
});

0 commit comments

Comments
 (0)