Skip to content

Commit d08e8b4

Browse files
chore: reset webkit
0 parents  commit d08e8b4

438 files changed

Lines changed: 10435 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.eslintrc.cjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier/skip-formatting', 'plugin:storybook/recommended'],
7+
rules: {
8+
"vue/multi-word-component-names": 0
9+
},
10+
overrides: [
11+
{
12+
files: [
13+
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'
14+
],
15+
'extends': [
16+
'plugin:cypress/recommended'
17+
]
18+
}
19+
],
20+
parserOptions: {
21+
ecmaVersion: 'latest'
22+
},
23+
env: {
24+
node: true,
25+
},
26+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @robsongajunior
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish @aziontech/icons to NPM
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'packages/icons/**'
9+
10+
jobs:
11+
release:
12+
name: Semantic Release
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
issues: write
18+
pull-requests: write
19+
id-token: write
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
token: ${{ secrets.GIT_PKG }}
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 'lts/*'
32+
registry-url: 'https://registry.npmjs.org'
33+
34+
- name: Setup pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 9
38+
39+
- name: Install workspace dependencies
40+
run: pnpm install --frozen-lockfile
41+
42+
- name: Run Semantic Release
43+
working-directory: packages/icons
44+
run: npx semantic-release
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GIT_PKG }}
47+
NODE_AUTH_TOKEN: ${{ secrets.PKG_NPM_TOKEN }}
48+
NPM_CONFIG_PROVENANCE: true

.github/workflows/storybook.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Storybook Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
name: Storybook
9+
runs-on: ubuntu-latest
10+
container:
11+
image: node:20-alpine3.18
12+
permissions:
13+
contents: write
14+
issues: write
15+
pull-requests: write
16+
id-token: write
17+
steps:
18+
- name: CHECKOUT project
19+
uses: actions/checkout@v4
20+
with:
21+
repository: aziontech/azion-webkit
22+
ref: main
23+
path: '.'
24+
clean: true
25+
fetch-depth: '0'
26+
lfs: 'false'
27+
- name: Node.js Setup
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 'lts/*'
31+
- name: Installing dependencies
32+
run: npm install
33+
- name: Building azion-webkit
34+
run: npm run build:package
35+
- name: Building Storybook
36+
run: npm run build:storybook
37+
- name: PREPARING TO DEPLOY
38+
run: rm -rf .github .storybook dist doc node_modules src .editorconfig .eslintrc.cjs .gitignore .prettierrc.json .releaserc build-package.js CHANGELOG.md CLA.md CODE_OF_CONDUCT.md CODEOWNERS CONTRIBUTING.md index.html LICENSE package-lock.json package.json postcss.config.js README.md tailwind.config.cjs tsconfig.json vite.config.js vitest.config.js; mv storybook-static/* .; rm -rf storybook-static;
39+
- name: Deployng Storybook
40+
uses: patrickwyler/gcs-bucket-sync-action@1.3
41+
with:
42+
secrets: ${{ secrets.GCP_BUCKET_KEY }}
43+
bucket: ${{ secrets.GCP_BUCKET_NAME }}

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
*storybook.log
10+
11+
node_modules
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
storybook-static
17+
18+
# Editor directories and files
19+
.vscode/*
20+
!.vscode/extensions.json
21+
.idea
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
.edge
28+
29+
package-lock.json
30+
yarn.lock
31+
32+
.DS_Store
33+
34+
# packages folder to ignore
35+

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none",
8+
"singleAttributePerLine": true,
9+
"vueIndentScriptAndStyle": true
10+
}

.storybook/main.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// /** @type { import('@storybook/vue3-vite').StorybookConfig } */
2+
const config = {
3+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
4+
addons: [
5+
'@storybook/addon-links',
6+
'@storybook/addon-docs',
7+
'@chromatic-com/storybook',
8+
'@storybook/addon-themes',
9+
'@whitespace/storybook-addon-html'
10+
],
11+
framework: {
12+
name: '@storybook/vue3-vite',
13+
options: {}
14+
},
15+
docs: {
16+
//👇 See the table below for the list of supported options
17+
defaultName: 'Documentation'
18+
},
19+
refs: {
20+
'marketing-components': {
21+
title: 'Marketing Components',
22+
url: 'https://s07fylnjym.map.azionedge.net/',
23+
expanded: true
24+
}
25+
}
26+
}
27+
export default config

.storybook/manager-head.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<style>
2+
/* Custom Azion branding for Storybook */
3+
4+
/* Hide default Storybook logo */
5+
.sidebar-header div {
6+
display: none !important;
7+
}
8+
9+
/* Add Azion logo */
10+
.sidebar-header::before {
11+
content: '';
12+
display: block;
13+
width: 90px;
14+
height: 24px;
15+
margin: 8px 0;
16+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTAiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCA5MCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfNDI2M184MjM5KSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ni42MzcgMEw4NS4xNDQ1IDcuNzkwMzNMODcuODYxIDExLjE2NzFMOTAgMEg4Ni42MzdaTTcyLjUwOTkgMEw2OS4xNDY1IDE3LjU2MUg3Mi41MTExTDc0LjgxNjMgNS41MjIyNEw4NC41MzMzIDE3LjU2MUg4Ni42MzdMODcuMDUxOCAxNS40MTEyTDc0LjYxMzEgMEg3Mi41MDk5WiIgZmlsbD0iI0YzNjUyQiI+PC9wYXRoPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNTEuNjU2MyAwTDQ4LjI5MyAxNy41NjFINjUuNzgzM0w2OS4xNDY2IDBINTEuNjU2M1pNNTQuMzg4NCAzLjMxNzk0SDY1LjEzOTJMNjMuMDQ2NyAxNC4yNDNINTIuMjk2TDU0LjM4ODQgMy4zMTc5NFoiIGZpbGw9IiNGMzY1MkIiPjwvcGF0aD48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ1LjAwMDEgMEw0MS43MDcgMTcuNTYxSDQ0Ljk5OTRMNDguMjkyNCAwSDQ1LjAwMDFaIiBmaWxsPSIjRjM2NTJCIj48L3BhdGg+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNC4yMTcgMEwyMy41ODE0IDMuMzE4MDFIMzUuMTk2MkwyMS4zNTExIDE0Ljk3NTZMMjAuODUzNSAxNy41NjFIMzguMzQzN0wzOC45NzkzIDE0LjI0M0gyNy4zNjQ2TDQxLjIxMjYgMi41ODI4OUw0MS43MDcyIDBIMjQuMjE3WiIgZmlsbD0iI0YzNjUyQiI+PC9wYXRoPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTguMjg2OCAwTDAuNDkwODkyIDE0Ljk4MjFMMCAxNy41NjFIMi41NjM5TDE2LjM0OSA1Ljk2MTQxTDE0LjEyNzEgMTcuNTYxSDE3LjQ4OThMMjAuODUzNyAwSDE4LjI4NjhaIiBmaWxsPSIjRjM2NTJCIj48L3BhdGg+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDBfNDI2M184MjM5Ij48cmVjdCB3aWR0aD0iOTAiIGhlaWdodD0iMTgiIGZpbGw9IndoaXRlIj48L3JlY3Q+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+');
17+
background-size: contain;
18+
background-repeat: no-repeat;
19+
background-position: left center;
20+
}
21+
22+
/* Custom Azion colors */
23+
:root {
24+
--color-orange-500: #F3652B;
25+
}
26+
27+
28+
/* Sidebar text color */
29+
.sidebar-item,
30+
.sidebar-item span,
31+
.sidebar-subheading,
32+
[data-nodetype="story"],
33+
[data-nodetype="component"],
34+
[data-nodetype="group"],
35+
[data-nodetype="root"],
36+
.sidebar-item a,
37+
.sidebar-item button,
38+
[class*="TreeNode"] span,
39+
[class*="LeafNode"] span {
40+
color: #e5e5e5 !important;
41+
}
42+
43+
/* Sidebar container */
44+
[class*="Container"] {
45+
background: #0a0a0a !important;
46+
}
47+
48+
/* Active/selected items */
49+
[data-selected="true"],
50+
[aria-selected="true"] {
51+
color: var(--color-orange-500) !important;
52+
}
53+
54+
/* Links hover */
55+
.sidebar-item:hover {
56+
color: var(--color-orange-500) !important;
57+
}
58+
59+
/* Toolbar */
60+
.css-1wa3eu0-placeholder {
61+
color: #a3a3a3 !important;
62+
}
63+
</style>

.storybook/preview-body.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<html>
2+
<head>
3+
<style>
4+
.sbdocs-content {
5+
@apply w-full max-w-7xl;
6+
}
7+
</style>
8+
</head>
9+
<body class="surface-ground"></body>
10+
</html>

0 commit comments

Comments
 (0)