Skip to content

Commit

Permalink
chore: fix again folder nav
Browse files Browse the repository at this point in the history
  • Loading branch information
hdJerry committed Aug 1, 2023
1 parent 8e57c5f commit 0d0ccb9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import getRepoTree from '../../services/get-repo-tree';
import { parseQueryData } from './parseTree';
import { createQuery } from '@tanstack/solid-query';
import { TreeProps } from '~/types/repo-tree-type';
import { A } from '@solidjs/router';

export type IProps = {
branch: string;
Expand Down Expand Up @@ -54,13 +55,13 @@ const FileExplorerView = (props: IProps) => {
<Match when={resTree.isSuccess && !resTree.isLoading}>
<div class={styles.container}>
<Show when={local.path && local.path !== ''}>
<a
<A
href={`${basePath()}/tree/${local.branch}/${local.path}`}
class={styles.cellBack}
replace
>
<div class="text-blue-600">..</div>
</a>
</A>
</Show>
<For each={tree()}>
{(item) => (
Expand Down
31 changes: 21 additions & 10 deletions solidstart-tanstackquery-tailwind-modules/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />
import netlify from 'solid-start-netlify';
import solid from "solid-start/vite";
import { defineConfig } from "vite";
import solid from 'solid-start/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [solid({
adapter: netlify({})
})],
plugins: [
solid({
adapter: netlify({}),
}),
],
server: {
port: 3000,
hmr: {
overlay: false
}
overlay: false,
},
},
optimizeDeps: {
include: ['@tanstack/solid-query', 'msw', 'msw-storybook-addon', 'solid-heroicons/outline', 'date-fns', 'classnames']
include: [
'@tanstack/solid-query',
'msw',
'msw-storybook-addon',
'solid-heroicons/outline',
'date-fns',
'classnames',
'solid-highlight',
'solid-markdown',
],
},
test: {
globals: true,
Expand All @@ -24,9 +35,9 @@ export default defineConfig({
web: [/.[jt]sx?/],
},
deps: {
inline: [/solid-start/, /solid-testing-library/],
},
inline: [/solid-start/, /solid-testing-library/],
},
},
resolve: {
conditions: ['development', 'browser'],
},
Expand Down

0 comments on commit 0d0ccb9

Please sign in to comment.