Skip to content

Commit

Permalink
feat: renamed _modules in __cms
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgnn committed Mar 7, 2024
1 parent a95a3bf commit 7b33d51
Show file tree
Hide file tree
Showing 25 changed files with 10 additions and 82 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/_modules/dao/db.ts → src/__cms/dao/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
CollectionSchema,
DocumentName,
Document
} from '$modules/types';
} from '../types';
import database_config from '$database/config';

import {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/_modules/dao/sorting.ts → src/__cms/dao/sorting.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Collection, CollectionName, Document } from '$modules/types';
import type { Collection, CollectionName, Document } from '../types';
import { Type as T, type Static } from '@sinclair/typebox';
import { Value } from '@sinclair/typebox/value';
import _ from 'lodash';
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Plugin } from 'vite';
//

const collections_directory = 'src/routes/(database)';
const output_file = 'src/_modules/database_index.ts';
const output_file = 'src/__cms/database_index.ts';

export function save_database_index_plugin(): Plugin {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/_modules/fields.ts → src/__cms/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Type as T, type StaticDecode } from '@sinclair/typebox';
import { database_index, database_index_schema } from './database_index';
import type { CollectionName } from './database';

import { db } from '$modules';
import { db } from '.';

//

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/_modules/types/index.ts → src/__cms/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { database_index } from '$modules/database_index';
import { database_index } from '../database_index';
import database_config from '$database/config';
import type { StaticDecode, StaticEncode } from '@sinclair/typebox';
import type { BaseDocument } from '../dao/base_document_handling';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/components/Link.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { href as hrefAdapter } from '$modules/utils';
import { href as hrefAdapter } from '$cms/utils';
export let href: string;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(database)/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as F from '$modules/fields'; // eslint-disable-line
import { database } from '$modules/database';
import * as F from '../../__cms/fields'; // eslint-disable-line
import { database } from '../../__cms/database';

/* --- */

Expand Down
3 changes: 0 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
<script lang="ts">
import { db } from '$modules/index';
</script>
69 changes: 0 additions & 69 deletions src/routes/cv/+page.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const config = {

alias: {
$database: './src/routes/(database)',
$modules: './src/_modules'
$cms: './src/__cms'
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { save_database_index_plugin } from './src/_modules/database_index_generation';
import { save_database_index_plugin } from './src/__cms/database_index_generation';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';

Expand Down

0 comments on commit 7b33d51

Please sign in to comment.