Skip to content

Commit 7d18379

Browse files
committed
🎉 initial source: add project #1
0 parents  commit 7d18379

File tree

251 files changed

+29950
-0
lines changed

Some content is hidden

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

251 files changed

+29950
-0
lines changed

Diff for: .editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

Diff for: .eslintrc.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["projects/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"parserOptions": {
8+
"project": ["tsconfig.json"],
9+
"createDefaultProgram": true
10+
},
11+
"extends": [
12+
"plugin:@angular-eslint/recommended",
13+
"plugin:@angular-eslint/template/process-inline-templates",
14+
"prettier"
15+
],
16+
"rules": {
17+
"@angular-eslint/directive-selector": [
18+
"error",
19+
{
20+
"type": "attribute",
21+
"prefix": "app",
22+
"style": "camelCase"
23+
}
24+
],
25+
"@angular-eslint/component-selector": [
26+
"error",
27+
{
28+
"type": "element",
29+
"prefix": "app",
30+
"style": "kebab-case"
31+
}
32+
]
33+
}
34+
},
35+
{
36+
"files": ["*.html"],
37+
"extends": ["plugin:@angular-eslint/template/recommended", "prettier"],
38+
"rules": {}
39+
}
40+
]
41+
}

Diff for: .github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: ['https://buy.stripe.com/7sI7sK99S86gbtu7ss','https://www.buymeacoffee.com/lanno'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

Diff for: .github/workflows/ci.yml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# This workflow will build and test an Angular project
2+
name: Vang (ViteJS & Angular)
3+
4+
on:
5+
push:
6+
branches: ['master']
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches: ['master']
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: ['>=16.0.0'] # Specify the Node.js version range
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
29+
- name: Install dependencies
30+
run: npm install
31+
32+
- name: Build
33+
run: npm run build
34+
35+
create-release:
36+
runs-on: ubuntu-latest
37+
38+
# Only run this job when a valid tag is pushed
39+
if: startsWith(github.ref, 'refs/tags/v')
40+
41+
steps:
42+
- name: Check if tag exists
43+
id: check_tag
44+
run: |
45+
if [ -n "$GITHUB_REF" ]; then
46+
TAG=${GITHUB_REF#refs/tags/}
47+
echo "TAG=${TAG}" >> $GITHUB_ENV
48+
else
49+
echo "TAG=" >> $GITHUB_ENV
50+
fi
51+
shell: bash
52+
53+
- name: Checkout code
54+
uses: actions/checkout@v3
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Apply changelog
59+
run: chmod +x git_changelog.sh
60+
61+
- name: Generate changelog
62+
id: changelog
63+
run: |
64+
CHANGELOG=$(./git_changelog.sh)
65+
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_ENV
66+
67+
- name: Create GitHub Release
68+
id: create_release
69+
uses: softprops/action-gh-release@v1
70+
with:
71+
tag_name: ${{ env.TAG }}
72+
body: |
73+
:gem: released new version ${{ env.TAG }}
74+
Changelog:
75+
${{ env.CHANGELOG }}
76+
draft: false
77+
prerelease: false
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/ci_notify.yml

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
name: Notify
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
tags:
7+
- "v*"
8+
pull_request:
9+
branches: ["master"]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v3
17+
18+
notify:
19+
runs-on: ubuntu-latest
20+
needs: build
21+
steps:
22+
- name: Check Secrets
23+
id: check
24+
run: |
25+
if [[ -z "${{ secrets.TELEGRAM_CHAT_ID }}" || -z "${{ secrets.TELEGRAM_BOT_TOKEN }}" ]]; then
26+
echo "::set-output name=skip::true"
27+
else
28+
echo "::set-output name=skip::false"
29+
fi
30+
- name: Send Telegram Notification
31+
if: steps.check.outputs.skip == 'false'
32+
uses: appleboy/telegram-action@master
33+
with:
34+
to: ${{ secrets.TELEGRAM_CHAT_ID }}
35+
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
36+
format: markdown
37+
message: |
38+
🚀 CI Commit
39+
🔯 `${{ github.actor }}` created commit:
40+
- message: `${{ github.event.commits[0].message }}`
41+
- hash: `${{ github.sha }}`
42+
- repository: `${{ github.repository }}`
43+
- head: `${{ github.event.head_commit.message }}`
44+
🍀 See changes: `https://github.com/${{ github.repository }}/commit/${{github.sha}}`
45+
46+
deploy:
47+
runs-on: ubuntu-latest
48+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
49+
needs: build
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v3
53+
with:
54+
fetch-depth: 0
55+
56+
- name: Check if tag exists
57+
id: check_tag
58+
run: |
59+
if [ -n "$GITHUB_REF" ]; then
60+
TAG=${GITHUB_REF#refs/tags/}
61+
# echo "::set-output name=tag::$TAG"
62+
echo "TAG=${TAG}" >> $GITHUB_ENV
63+
else
64+
# echo "::set-output name=tag::"
65+
echo "TAG=" >> $GITHUB_ENV
66+
fi
67+
shell: bash
68+
69+
- name: Check Secrets
70+
id: check
71+
run: |
72+
if [[ -z "${{ secrets.TELEGRAM_CHAT_ID }}" || -z "${{ secrets.TELEGRAM_BOT_TOKEN }}" ]]; then
73+
echo "::set-output name=skip::true"
74+
else
75+
echo "::set-output name=skip::false"
76+
fi
77+
78+
- name: Generate Changelog
79+
id: changelog
80+
run: |
81+
# Generate your changelog here and set it as an output variable
82+
CHANGELOG=$(git log --pretty=format:"%h - %s" -n 10)
83+
echo "::set-output name=changelog::$CHANGELOG"
84+
85+
- name: Create GitHub Release
86+
id: create_release
87+
uses: softprops/action-gh-release@v1
88+
with:
89+
tag_name: ${{ env.TAG }}
90+
body: |
91+
:gem: released new version ${{ env.TAG }}
92+
draft: false
93+
prerelease: false
94+
env:
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
97+
- name: Send Telegram Notification
98+
if: steps.check.outputs.skip == 'false'
99+
uses: appleboy/telegram-action@master
100+
with:
101+
to: ${{ secrets.TELEGRAM_CHAT_ID }}
102+
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
103+
format: markdown
104+
message: |
105+
🚀 New tag created: **${{ env.TAG }}**
106+
🔯 `${{ github.actor }}` created tag:
107+
- repository: `${{ github.repository }}`
108+
- head: `${{ github.event.head_commit.message }}`
109+
🍀 See changes: `https://github.com/${{ github.repository }}/releases/tag/${{ env.TAG }}`
110+
📜 Changelog:
111+
`${{ steps.changelog.outputs.changelog }}`

Diff for: .github/workflows/playwright.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Install Playwright Browsers
19+
run: npx playwright install --with-deps
20+
- name: Run Playwright tests
21+
run: npx playwright test
22+
- uses: actions/upload-artifact@v4
23+
if: always()
24+
with:
25+
name: playwright-report
26+
path: playwright-report/
27+
retention-days: 30

Diff for: .gitignore

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/ngx-fes-shops
8+
# Only exists if Bazel was run
9+
/bazel-out
10+
/logs
11+
12+
# dependencies
13+
/node_modules
14+
15+
# profiling files
16+
chrome-profiler-events*.json
17+
speed-measure-plugin*.json
18+
project_structure.txt
19+
20+
# IDEs and editors
21+
/.idea
22+
.project
23+
.classpath
24+
.c9/
25+
*.launch
26+
.settings/
27+
*.sublime-workspace
28+
29+
# IDE - VSCode
30+
.vscode/*
31+
!.vscode/settings.json
32+
!.vscode/tasks.json
33+
!.vscode/launch.json
34+
!.vscode/extensions.json
35+
.history/*
36+
37+
# misc
38+
/.sass-cache
39+
/connect.lock
40+
/coverage
41+
/libpeerconnection.log
42+
npm-debug.log
43+
yarn-error.log
44+
testem.log
45+
/typings
46+
47+
# System Files
48+
.DS_Store
49+
Thumbs.db
50+
51+
# Cache
52+
.angular/*
53+
54+
# Package Json
55+
# package-lock.json

Diff for: .prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package.json
2+
package-lock.json
3+
dist
4+
build
5+
node_modules

Diff for: .prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"useTabs": false,
3+
"bracketSameLine": true,
4+
"bracketSpacing": true,
5+
"trailingComma": "all",
6+
"tabWidth": 2,
7+
"semi": true,
8+
"singleQuote": true,
9+
"quoteProps": "as-needed",
10+
"printWidth": 120
11+
}

0 commit comments

Comments
 (0)