Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolidStart #41

Merged
merged 60 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b6924c5
SolidStartをセットアップしてみた
todays-mitsui Nov 21, 2024
1cf9a1e
最適化設定
todays-mitsui Nov 21, 2024
d775650
.
todays-mitsui Nov 21, 2024
1aa1ec9
hcm導入
todays-mitsui Nov 22, 2024
4602fb5
biome導入
todays-mitsui Nov 22, 2024
af82ba6
precommit
todays-mitsui Nov 22, 2024
705a03e
.
todays-mitsui Nov 22, 2024
4efb480
.
todays-mitsui Nov 22, 2024
f6b5086
.
todays-mitsui Nov 22, 2024
c6b7e90
.
todays-mitsui Nov 22, 2024
d943bbc
.
todays-mitsui Nov 22, 2024
2a9e53a
.
todays-mitsui Nov 22, 2024
8a5d2fa
作ってる
todays-mitsui Nov 25, 2024
4f1505e
少しスタイル当てた
todays-mitsui Nov 25, 2024
5cc9073
Reduceできたところまで
todays-mitsui Nov 25, 2024
427fc89
ReduceLast
todays-mitsui Nov 25, 2024
37c98a9
.
todays-mitsui Nov 25, 2024
bbb71cf
ReduceHead
todays-mitsui Nov 25, 2024
03fb714
ReduceTail
todays-mitsui Nov 25, 2024
ac2b305
codeで包む
todays-mitsui Nov 25, 2024
4db10c8
スタイル当てる途中
todays-mitsui Dec 3, 2024
92a578e
Storybook導入
todays-mitsui Dec 4, 2024
f91f1e9
Merge branch 'storybook-init' into solid-start
todays-mitsui Dec 4, 2024
c3f7ed3
Story追加
todays-mitsui Dec 4, 2024
e991882
スタイル
todays-mitsui Dec 4, 2024
2208701
biome check
todays-mitsui Dec 4, 2024
e3714dc
スタイル
todays-mitsui Dec 5, 2024
2c67c36
ConsoleUnitReduceLast
todays-mitsui Dec 5, 2024
1456e69
localsConvention=camelCaseOnly 設定を有効にした
todays-mitsui Dec 5, 2024
08c898f
ConsoleUnitReduceHead
todays-mitsui Dec 5, 2024
bedb02d
ConsoleUnitReduceTail
todays-mitsui Dec 5, 2024
fb72a6f
focusの挙動
todays-mitsui Dec 11, 2024
10884e8
高さを自動調節する<textarea>
todays-mitsui Dec 11, 2024
a2dddd3
addCommandHistory
todays-mitsui Dec 11, 2024
76249f2
履歴表示
todays-mitsui Dec 11, 2024
ef783ce
value経由で内容が更新された場合に対応させる
todays-mitsui Dec 11, 2024
8b8cd55
.
todays-mitsui Dec 11, 2024
7df48d1
改行時の振る舞い
todays-mitsui Dec 17, 2024
399aa83
value指定忘れ
todays-mitsui Dec 17, 2024
956cca1
SideToolsの途中
todays-mitsui Dec 18, 2024
ce09542
ToolBox
todays-mitsui Jan 22, 2025
fba4f83
なんかアイコンの読み込み上手くいってない?
todays-mitsui Jan 23, 2025
c7ebb43
SideToolsのクリック時の挙動、いったんOK
todays-mitsui Jan 24, 2025
ca0d4b7
.
todays-mitsui Jan 24, 2025
e8f8950
Resetボタン, Clearボタン
todays-mitsui Jan 25, 2025
d4c62c4
Funcの並び替えをちゃんとやる
todays-mitsui Jan 25, 2025
9daf60f
不要なconsole.logを削除
todays-mitsui Jan 25, 2025
167729a
fix
todays-mitsui Jan 25, 2025
fa012d8
unlambda
todays-mitsui Jan 26, 2025
24aa2c9
randomSpell
todays-mitsui Jan 27, 2025
8be9fe4
randomSpell関数における重複スラングの排除と新しいスラングの追加
todays-mitsui Jan 27, 2025
6d2fc70
ConsoleUnitContextでの関数のソート処理を改善
todays-mitsui Jan 28, 2025
5221d97
フォントちゃんとする
todays-mitsui Jan 28, 2025
250f6a0
コマンド実行時に下までスクロールする機構
todays-mitsui Jan 28, 2025
95ac4ff
コンソールの自動スクロール機能を改善し、サブツリーの変更も監視するように修正。スロットリング機能を追加。
todays-mitsui Jan 28, 2025
304cedd
リストアイテムのスタイルを改善し、ホバー時の背景色を追加
todays-mitsui Jan 28, 2025
8bb40f9
コマンド履歴のサイズを100に増加
todays-mitsui Jan 28, 2025
5beaf03
faviconを正式なものに置き換え
todays-mitsui Jan 28, 2025
3b30bed
Headerコンポーネントのリンクを修正し、不要なリストアイテムをコメントアウト
todays-mitsui Jan 28, 2025
a6f4755
WASM関連のビルドスクリプトを追加し、.gitignoreを更新
todays-mitsui Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ node_modules
/wasm-pack.log
.DS_Store

pkg/
target/
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
npm run precommit
git add --all
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"rust-analyzer.linkedProjects": ["./ski/Cargo.toml", "./tuber/Cargo.toml"]
"rust-analyzer.linkedProjects": ["./ski/Cargo.toml", "./tuber/Cargo.toml"],
"files.exclude": {
"mogul/**/*.module.css.d.*": true,
},
}
2 changes: 1 addition & 1 deletion js/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function wrapParts(wrap, str, ranges, offset = 0) {
fragment.appendChild(document.createTextNode(s));
}
} else {
const index = (i - 1) * 0.5;
const index = (i - 1) * 0.5; // i >> 1
fragment.appendChild(wrap(index, s));
}
}
Expand Down
31 changes: 31 additions & 0 deletions mogul/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

dist
.solid
.output
.vercel
.netlify
.vinxi
app.config.timestamp_*.js

# Environment
.env
.env*.local

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
*.launch
.settings/

# Temp
gitignore

# System Files
.DS_Store
Thumbs.db

*storybook.log
29 changes: 29 additions & 0 deletions mogul/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { StorybookConfig } from "storybook-solidjs-vite";
import { mergeConfig } from "vite";
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
import tsconfigPaths from "vite-tsconfig-paths";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
framework: {
name: "storybook-solidjs-vite",
options: {},
},
async viteFinal(config) {
return mergeConfig(config, {
plugins: [tsconfigPaths(), wasm(), topLevelAwait()],
css: {
modules: {
localsConvention: 'camelCase',
}
},
});
},
};
export default config;
14 changes: 14 additions & 0 deletions mogul/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import "~/global.css";

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
42 changes: 42 additions & 0 deletions mogul/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SolidStart

Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);

## Creating a project

```bash
# create a new project in the current directory
npm init solid@latest

# create a new project in my-app
npm init solid@latest my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

Solid apps are built with _presets_, which optimise your project for deployment to different environments.

By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different preset, add it to the `devDependencies` in `package.json` and specify in your `app.config.js`.

## Testing

Tests are written with `vitest`, `@solidjs/testing-library` and `@testing-library/jest-dom` to extend expect with some helpful custom matchers.

To run them, simply start:

```sh
npm test
```

## This project was created with the [Solid CLI](https://solid-cli.netlify.app)
14 changes: 14 additions & 0 deletions mogul/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from "@solidjs/start/config";
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";

export default defineConfig({
vite: {
plugins: [wasm(), topLevelAwait()],
css: {
modules: {
localsConvention: 'camelCase',
}
}
},
});
17 changes: 17 additions & 0 deletions mogul/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"formatter": {
"enabled": true,
"ignore": ["*.d.ts"],
"indentStyle": "space"
},
"organizeImports": {
"enabled": true,
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
},
"css": {
"parser": {
"cssModules": true
}
}
}
Loading