Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/abusix/hailstorm into next
Browse files Browse the repository at this point in the history
  • Loading branch information
pallendes committed Dec 7, 2023
2 parents 781d102 + 7a5f5ca commit 532317d
Show file tree
Hide file tree
Showing 86 changed files with 13,783 additions and 12,625 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
plugins: ["react", "@typescript-eslint", "prettier"],
rules: {
"import/prefer-default-export": "off",
"no-restricted-exports": ["error", {restrictDefaultExports: {direct: true}}],
"no-restricted-exports": ["error", { restrictDefaultExports: { direct: true } }],
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"no-alert": "off",
Expand All @@ -39,6 +39,7 @@ module.exports = {
devDependencies: ["**/*.stories.tsx", "**/*.test.tsx", "**/*.test.ts"],
},
],
"react/jsx-props-no-spreading": "off",
},
overrides: [
{
Expand All @@ -56,13 +57,13 @@ module.exports = {
"no-restricted-exports": "off",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
}
},
},
{
files: ["src/util/class-names.tsx"],
rules: {
"import/no-extraneous-dependencies": "off",
}
}
},
},
],
};
14 changes: 14 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto Author Assign

on:
pull_request_target:
types: [opened, reopened]

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false # <--- this
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test Components

on:
push:
pull_request:
branches:
- master

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- run: npm ci
- run: npm run test
22 changes: 22 additions & 0 deletions .github/workflows/type-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Type Check

on: push

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- run: npm ci
- run: npm run type-check
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14.1
20.10.0
3 changes: 3 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ module.exports = {
semi: true,
singleQuote: false,
printWidth: 100,
// tailwind pluging config
plugins: ["prettier-plugin-tailwindcss"],
tailwindConfig: "./tailwind.config.cjs",
};
4 changes: 4 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config: StorybookConfig = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-docs",
"@storybook/addon-mdx-gfm",
],
framework: {
name: "@storybook/react-vite",
Expand All @@ -18,5 +19,8 @@ const config: StorybookConfig = {
docs: {
autodocs: true,
},
core: {
disableTelemetry: true,
},
};
export default config;
124 changes: 117 additions & 7 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,121 @@
<style type="text/css">
/*
Place to add custom fonts that only affect the storybook preview
@font-face {
font-family: Inter;
src: url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
}
*/
/* Add Inter font */
@font-face {
font-family: Inter;
font-weight: 100;
font-style: normal;
src: url(/fonts/Inter/Inter-Thin.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 200;
font-style: normal;
src: url(/fonts/Inter/Inter-ExtraLight.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 300;
font-style: normal;
src: url(/fonts/Inter/Inter-Light.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 400;
font-style: normal;
src: url(/fonts/Inter/Inter-Regular.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 500;
font-style: normal;
src: url(/fonts/Inter/Inter-Medium.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 600;
font-style: normal;
src: url(/fonts/Inter/Inter-SemiBold.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 700;
font-style: normal;
src: url(/fonts/Inter/Inter-Bold.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 800;
font-style: normal;
src: url(/fonts/Inter/Inter-ExtraBold.ttf) format('truetype');
}
@font-face {
font-family: Inter;
font-weight: 900;
font-style: normal;
src: url(/fonts/Inter/Inter-Black.ttf) format('truetype');
}

/* Add Fabriga font */
@font-face {
font-family: Fabriga;
font-weight: 300;
font-style: normal;
src: url(/fonts/Fabriga/Fabriga-Light.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 300;
font-style: italic;
src: url(/fonts/Fabriga/Fabriga-LightItalic.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 400;
font-style: normal;
src: url(/fonts/Fabriga/Fabriga-Regular.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 400;
font-style: italic;
src: url(/fonts/Fabriga/Fabriga-Italic.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 500;
font-style: normal;
src: url(/fonts/Fabriga/Fabriga-Medium.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 500;
font-style: italic;
src: url(/fonts/Fabriga/Fabriga-MediumItalic.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 700;
font-style: normal;
src: url(/fonts/Fabriga/Fabriga-Bold.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 700;
font-style: italic;
src: url(/fonts/Fabriga/Fabriga-BoldItalic.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 900;
font-style: normal;
src: url(/fonts/Fabriga/Fabriga-Black.otf) format('opentype');
}
@font-face {
font-family: Fabriga;
font-weight: 900;
font-style: italic;
src: url(/fonts/Fabriga/Fabriga-BlackItalic.otf) format('opentype');
}
</style>
<script>
window.global = window;
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Preview } from "@storybook/react";
import "tailwindcss/tailwind.css";
import "../src/index.css";
import "../src/styles/index.css";

const preview: Preview = {
parameters: {
Expand Down
Binary file added assets/fonts/Fabriga/Fabriga-Black.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-BlackItalic.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-Bold.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-BoldItalic.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-Italic.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-Light.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-LightItalic.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-Medium.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-MediumItalic.otf
Binary file not shown.
Binary file added assets/fonts/Fabriga/Fabriga-Regular.otf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-Black.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-ExtraBold.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-ExtraLight.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-Light.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-SemiBold.ttf
Binary file not shown.
Binary file added assets/fonts/Inter/Inter-Thin.ttf
Binary file not shown.
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 532317d

Please sign in to comment.