Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
cqh963852 committed Nov 12, 2023
1 parent e2bf2aa commit a092696
Show file tree
Hide file tree
Showing 169 changed files with 14,179 additions and 26,451 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI Check

on:
pull_request:
branches:
- main
merge_group:
branches:
- main
push:
branches:
- refactor

jobs:
ci-test:
name: CI Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install Dependencies
run: yarn install --immutable
- name: Pack Packages
run: yarn workspaces foreach run prepack
32 changes: 0 additions & 32 deletions .github/workflows/deploy.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/test-deploy.yml

This file was deleted.

32 changes: 9 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
dist

npm-debug.log*
yarn-debug.log*
yarn-error.log*

dist

.eslintcache
.VSCodeCounter
.package-lock.json
.env
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
10 changes: 0 additions & 10 deletions .npmrc

This file was deleted.

6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
42 changes: 0 additions & 42 deletions .vscode/launch.json

This file was deleted.

6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.1.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
compressionLevel: mixed

enableGlobalCache: false

httpProxy: "${http_proxy:-}"

httpsProxy: "${http_proxy:-}"

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.1.cjs
39 changes: 0 additions & 39 deletions README.md

This file was deleted.

24 changes: 24 additions & 0 deletions apps/demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
18 changes: 18 additions & 0 deletions apps/demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<style>
body {
margin: 0;
}
</style>
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "demo",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"devDependencies": {
"@types/node": "^20.6.0",
"typescript": "^5.0.2",
"vite": "^4.4.5"
},
"dependencies": {
"@idealjs/layout-manager": "workspace:^",
"@idealjs/reactive": "^0.1.5"
}
}
1 change: 1 addition & 0 deletions apps/demo/public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions apps/demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { createState, useEffect } from "@idealjs/reactive";

import Layout from "./Layout";
import { updateLayout } from "./store";

const App = () => {
const root = createState<HTMLDivElement>(null);
useEffect(() => {
if (root.val != null) {
const observer = new ResizeObserver((entries) => {
if (entries[0]?.contentRect != null) {
updateLayout(entries[0]?.contentRect);
}
});
observer.observe(root.val);
return () => {
observer.disconnect();
};
}
});

return (
<div ref={root} className="App" style={{ height: "100vh", width: "100vw" }}>
<Layout />
</div>
);
};

export default App;
Loading

0 comments on commit a092696

Please sign in to comment.