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

Deploy version 1.0.0 #30

Merged
merged 27 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e59af5f
[MS-7] docs init (#2)
Moon-DaeSeung Mar 10, 2024
22fc827
[MS-4] showcase is added (#3)
Moon-DaeSeung Mar 10, 2024
93d9ed2
[ms-5] Docs 5 home detail (#4)
Moon-DaeSeung Mar 10, 2024
1a13fcf
[MS-16] Docs 16 header footer (#5)
Moon-DaeSeung Mar 10, 2024
26d6e77
[MS-22] Docs 22 docs outline (#6)
Moon-DaeSeung Mar 10, 2024
d59cc0f
add Introduction example (#8)
Moon-DaeSeung Mar 11, 2024
f867286
add concepts example (#7)
Moon-DaeSeung Mar 11, 2024
1f1f64e
[MS-23] docs api reference is added (#9)
Moon-DaeSeung Mar 11, 2024
a1bd62a
fix build error (#10)
Moon-DaeSeung Mar 11, 2024
6fa076f
[MS-3] flutterjs -> flitter migration (#11)
Moon-DaeSeung Mar 12, 2024
b2085f6
[MS-26] Deploy 26 (#12)
Moon-DaeSeung Mar 12, 2024
03222d9
[MS-6] Feature 6 chart migration (#13)
Moon-DaeSeung Mar 13, 2024
7a8b28c
[MS-15] support ssr on svelte (#14)
Moon-DaeSeung Mar 15, 2024
0b628c8
ci: add .deepsource.toml
deepsource-io[bot] Mar 15, 2024
def3746
[MS-29] add deep source (#17)
Moon-DaeSeung Mar 15, 2024
e557af3
[MS-2] Devops 2 huskey (#20)
Moon-DaeSeung Mar 15, 2024
9c0b45d
refactor: remove `true` from boolean attribute (#19)
deepsource-autofix[bot] Mar 15, 2024
79ee198
refactor: replace template strings with regular string literals (#16)
deepsource-autofix[bot] Mar 15, 2024
5d967a2
[MS-28] improve performance for requestFrameWork (#21)
Moon-DaeSeung Mar 16, 2024
4a4d653
[MS-34] add test (#22)
Moon-DaeSeung Mar 21, 2024
a99e168
[MS-287] chromatic auto deploy (#23)
Moon-DaeSeung Mar 22, 2024
247afae
[MS-39] improve hit test (#24)
Moon-DaeSeung Mar 23, 2024
c54c2e4
[MS-42] call postCallback when window size changed (#26)
Moon-DaeSeung Mar 25, 2024
5ec6aba
storybook 8 migration (#27)
Moon-DaeSeung Mar 25, 2024
3b01f9b
[MS-37] Fix 37 scheduler (#28)
Moon-DaeSeung Mar 25, 2024
6b90f79
[MS-40] record performance history (#29)
Moon-DaeSeung Mar 27, 2024
00ae803
deploy version 1.0.0
Moon-DaeSeung Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version = 1

[[analyzers]]
name = "javascript"

[analyzers.meta]
environment = [
"nodejs",
"browser"
]
36 changes: 36 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to Chromatic

on:
push:
paths:
- packages/flitter/**/*
- packages/story/**/*
- .github/workflows/chromatic.yml
branches:
- dev

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
environment: CHROMATIC_PROJECT_TOKEN

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Install dependencies
run: |
npm ci

- name: Build Storybook
run: npm run story:build

- name: Deploy to Chromatic
run: cd packages/story && npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} --auto-accept-changes
33 changes: 33 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Playwright Tests
on:
push:
branches: [ main, master, dev ]
paths:
- 'packages/test/**'
- 'packages/flitter/**'
pull_request:
branches: [ main, master, dev ]
paths:
- 'packages/test/**'
- 'packages/flitter/**'
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm i
- name: Install Playwright Browsers
run: cd packages/test && npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test:playwright
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: packages/test/playwright-report/
retention-days: 30
14 changes: 12 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/node_modules
/dist
/.env
*storybook.log

node_modules/
dist/
.env
storybook-static/
package
.svelte-kit
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
Expand Down
18 changes: 16 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@
"cSpell.words": [
"astro",
"astrojs",
"autodocs",
"egjs",
"flutterjs",
"lerp",
"linkedom",
"meursyphus",
"meusyphus",
"tailwindcss"
"popmotion",
"postbuild",
"predocs",
"prestory",
"publint",
"renderobject",
"rgba",
"Shiki",
"tailwindcss",
"tsup",
"uglychart"
],
"editor.formatOnSave": true
}
70 changes: 70 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Flitter

Flitter is a framework that deals with SVG. Like React, it uses VDOM to manage state and optimize rendering. Since the library directly calculates the layout, it is much easier to visualize data than using D3. This provides a high level of control and flexibility for data visualization.

FlutterJs is a library inspired by Flutter, a cross-platform framework commonly used for mobile app development.

For more details, visit [here](https://flitter.pages.dev).

## Getting Started

Getting started with Flitter is straightforward. Follow these steps to install and use Flitter in your React or Svelte projects. (Or you can implement widget component manually to support Flitter.)

### React
```bash
npm i @meursyphus/flitter @meursyphus/flitter-react
```
Example of using Flitter widgets in a React component:

```javascript
import { Container, Alignment, Text, TextStyle } from '@meursyphus/flitter';
import Widget from '@meursyphus/flitter-react';

const App = () => {
return (
<Widget
width="600px"
height="300px"
widget={Container({
alignment: Alignment.center,
color: 'lightblue',
child: Text("Hello, Flitter!", style: TextStyle({ fontSize: 30, weight: 'bold' }))
})}
/>
);
};
```
### Svelte

```bash
npm i @meursyphus/flitter @meursyphus/flitter-svelte
```

```svelte
<script>
import { Container, Alignment, Text, TextStyle } from '@meursyphus/flitter';
import Widget from '@meursyphus/flitter-svelte';
</script>

<Widget
width="600px"
height="300px"
widget={Container({
alignment: Alignment.center,
color: 'lightblue',
child: Text("Hello, Flitter!", style: TextStyle({ fontSize: 30, weight: 'bold' }))
})}
/>
```

## Features

- Provides high-resolution, resolution-independent visualizations based on SVG
- Simplifies SVG manipulation with a component-based approach
- Allows for quick learning and development with a syntax similar to Flutter

## License

Flitter is open-source software freely available under the MIT license.

For more information and documentation, refer to the [Flitter official documentation](https://flitter.pages.dev).
Loading
Loading