Skip to content

Commit

Permalink
fix: update links to new one
Browse files Browse the repository at this point in the history
  • Loading branch information
arcs- committed Feb 22, 2024
1 parent ffbbba1 commit 2cbff16
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 92 deletions.
7 changes: 3 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ const baseConfig: UserConfig<DefaultTheme.Config> = {
editLink: {
pattern: ({ relativePath }): string => {
if (relativePath.startsWith('packages/')) {
const [_, pkgName, ...files] = relativePath.split('/');
return `https://gitlab.com/JKwebGmbH/jktools/-/blob/master/packages/${pkgName}/docs/${files.join('/')}`;
const [, pkgName, ...files] = relativePath.split('/');
return `https://github.com/teamnovu/kit/tree/main/packages/${pkgName}/docs/${files.join('/')}`;
}
return `https://gitlab.com/JKwebGmbH/jktools/-/blob/master/docs/${relativePath}`;
return `https://github.com/teamnovu/kit/tree/main/docs/${relativePath}`;
},
},

sidebar: [
{
text: 'General',
items: [
{ text: 'Preparation', link: '/preparation' },
{ text: 'Contribute', link: '/contribute' },
{ text: 'Guidelines', link: '/guidelines' },
{ text: 'Tried and Tested', link: '/tried' },
Expand Down
1 change: 1 addition & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* -------------------------------------------------------------------------- */

:root {
--vp-c-bg: #111;
--vp-c-brand: #D5C283;
--vp-c-brand-1: #D5C283;
--vp-c-brand-light: #EBDFB7;
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ Its far from complete and new functionalities are incoming when the need arises.

For a list of possible future contributions, take a look at the [Notion page](https://www.notion.so/jkgroup/shared-bits-48e37099b91240acb11dc487e3101068?pvs=4.).

To see the [documentation](https://jktools.storage.googleapis.com/index.html) and contribution guideline please go to https://jktools.storage.googleapis.com/index.html or run:

```
npm run docs:build
npm run docs:preview
pnpm run docs:build
pnpm run docs:preview
```
53 changes: 0 additions & 53 deletions docs/preparation.md

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"description": "One place for shared JS/Web development goods",
"homepage": "https://github.com/teamnovu/kit",
"homepage": "https://kit.novu.ch/",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]:teamnovu/kit.git"
},
"author": "@teamnovu",
"type": "module",
"packageManager": "[email protected]",
Expand Down
7 changes: 2 additions & 5 deletions packages/animations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/JKwebGmbH/jktools.git"
"url": "git+ssh://git@github.com:teamnovu/kit.git"
},
"keywords": [
"composable",
"vue",
"vue3"
],
"author": "Elias Bernhaut",
"bugs": {
"url": "https://gitlab.com/JKwebGmbH/jktools/issues"
},
"homepage": "https://gitlab.com/JKwebGmbH/jktools#readme",
"homepage": "https://kit.novu.ch/packages/animations/",
"dependencies": {
"@vueuse/core": "^10.1.0",
"nanoid": "^5.0.6"
Expand Down
7 changes: 2 additions & 5 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,15 @@
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/JKwebGmbH/jktools.git"
"url": "git+ssh://git@github.com:teamnovu/kit.git"
},
"keywords": [
"vue",
"vue3",
"components"
],
"author": "Elias Bernhaut",
"bugs": {
"url": "https://gitlab.com/JKwebGmbH/jktools/issues"
},
"homepage": "https://gitlab.com/JKwebGmbH/jktools#readme",
"homepage": "https://kit.novu.ch/packages/components/",
"dependencies": {
"@teamnovu/kit-composables": "workspace:*",
"@vueuse/core": "^9.13.0",
Expand Down
7 changes: 2 additions & 5 deletions packages/composables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/JKwebGmbH/jktools.git"
"url": "git+ssh://git@github.com:teamnovu/kit.git"
},
"keywords": [
"composable",
"vue",
"vue3"
],
"author": "Elias Bernhaut",
"bugs": {
"url": "https://gitlab.com/JKwebGmbH/jktools/issues"
},
"homepage": "https://gitlab.com/JKwebGmbH/jktools#readme",
"homepage": "https://kit.novu.ch/packages/composables/",
"dependencies": {
"@vueuse/core": "^9.13.0",
"lodash-es": "^4.17.21",
Expand Down
7 changes: 2 additions & 5 deletions packages/cookieconsent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/JKwebGmbH/jktools.git"
"url": "git+ssh://git@github.com:teamnovu/kit.git"
},
"author": "Patrick Stillhart",
"bugs": {
"url": "https://gitlab.com/JKwebGmbH/jktools/issues"
},
"homepage": "https://gitlab.com/JKwebGmbH/jktools#readme",
"homepage": "https://kit.novu.ch/packages/cookieconsent/",
"dependencies": {
"@nuxt/kit": "^3.8.1",
"@vueuse/core": "^10.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# *-nuxt

Add jktools to nuxt
Add @teamnovu/kit-* to nuxt

## Contents

Expand Down
18 changes: 9 additions & 9 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ import * as Components from '@teamnovu/kit-components';
import * as Composables from '@teamnovu/kit-composables';
import { type Options as AnimationsOptions } from '@teamnovu/kit-animations';

export interface JktoolsNuxtOptions {
export interface NovuKitNuxtOptions {
prefix?: string
animations?: AnimationsOptions
}

/**
* jktools for Nuxt
* NovuKit for Nuxt
* Usage:
*
* ```ts
* // nuxt.config.js
* export default {
* modules: ['@vueuse/jktools']
* modules: ['@teamnovu/kit-nuxt']
* }
* ```
*/
const module: NuxtModule<JktoolsNuxtOptions> = defineNuxtModule<JktoolsNuxtOptions>({
const module: NuxtModule<NovuKitNuxtOptions> = defineNuxtModule<NovuKitNuxtOptions>({
meta: {
name: 'jktools',
configKey: 'jktools',
name: 'kit',
configKey: 'kit',
},
defaults: {
prefix: '',
Expand All @@ -39,7 +39,7 @@ const module: NuxtModule<JktoolsNuxtOptions> = defineNuxtModule<JktoolsNuxtOptio
const { resolve } = createResolver(import.meta.url);

// eslint-disable-next-line no-param-reassign
nuxt.options.runtimeConfig.public.jktools = {
nuxt.options.runtimeConfig.public.kit = {
...options,
};

Expand Down Expand Up @@ -68,11 +68,11 @@ const module: NuxtModule<JktoolsNuxtOptions> = defineNuxtModule<JktoolsNuxtOptio
declare module '@nuxt/schema' {
// eslint-disable-next-line no-unused-vars
interface NuxtConfig {
jktools?: JktoolsNuxtOptions
kit?: NovuKitNuxtOptions
}
// eslint-disable-next-line no-unused-vars
interface NuxtOptions {
jktools?: JktoolsNuxtOptions
kit?: NovuKitNuxtOptions
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/runtime/animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { defineNuxtPlugin, inject, useRuntimeConfig } from '#imports';

export default defineNuxtPlugin(({ vueApp, hook }: any) => {
const runtimeConfig = useRuntimeConfig();
const config = (runtimeConfig?.public?.jktools.animations ?? {}) as AnimationsOptions;
const config = (runtimeConfig?.public?.kit.animations ?? {}) as AnimationsOptions;

vueApp.use(animate, config);

Expand Down

0 comments on commit 2cbff16

Please sign in to comment.