Skip to content

Commit a22be54

Browse files
committed
init
0 parents  commit a22be54

95 files changed

Lines changed: 4134 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[{package.json,*.yml}]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: 🐛 Bug Report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: 'bug'
6+
assignees: ''
7+
---
8+
9+
## 🐛 Bug Description
10+
<!-- A clear and concise description of what the bug is -->
11+
12+
## 🔍 Steps to Reproduce
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
## 💡 Expected Behavior
19+
<!-- A clear and concise description of what you expected to happen -->
20+
21+
## 📸 Screenshots
22+
<!-- If applicable, add screenshots to help explain your problem -->
23+
24+
## 💻 Environment
25+
- Strapi Version: <!-- e.g. 5.12.5 -->
26+
- Provider Version: <!-- e.g. 5.0.0 -->
27+
- Node Version: <!-- e.g. 18.0.0 -->
28+
- OS: <!-- e.g. macOS, Windows, Linux -->
29+
30+
## 📝 Additional Context
31+
<!-- Add any other context about the problem here -->
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: ✨ Feature Request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: 'enhancement'
6+
assignees: ''
7+
---
8+
9+
## ✨ Feature Description
10+
<!-- A clear and concise description of the feature you'd like to see -->
11+
12+
## 🎯 Use Case
13+
<!-- Describe the use case or problem this feature would solve -->
14+
15+
## 💡 Proposed Solution
16+
<!-- Describe the solution you'd like -->
17+
18+
## 🔄 Alternative Solutions
19+
<!-- Describe any alternative solutions or features you've considered -->
20+
21+
## 📝 Additional Context
22+
<!-- Add any other context or screenshots about the feature request here -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: ❓ Question
3+
about: Ask a question about the project
4+
title: '[QUESTION] '
5+
labels: 'question'
6+
assignees: ''
7+
---
8+
9+
## ❓ Question
10+
<!-- Your question here -->
11+
12+
## 🔍 What I've Tried
13+
<!-- Describe what you've tried so far -->
14+
15+
## 📚 Documentation
16+
<!-- Have you checked the documentation? -->
17+
18+
## 📝 Additional Context
19+
<!-- Add any other context or screenshots about your question here -->

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Pull Request
2+
3+
## 📝 Description
4+
<!-- Provide a brief description of the changes in this PR -->
5+
6+
## 🔄 Changes
7+
<!-- List the main changes made in this PR -->
8+
9+
## 🧪 Testing
10+
<!-- Describe how you tested your changes -->
11+
12+
## ✅ Checklist
13+
- [ ] I have read and followed the [Contributing Guidelines](CONTRIBUTING.md)
14+
- [ ] I have read and agree with the [Code of Conduct](CODE_OF_CONDUCT.md)
15+
- [ ] My changes follow the code style of this project
16+
- [ ] I have added tests that prove my fix is effective or that my feature works
17+
- [ ] I have updated the documentation accordingly
18+
19+
## 📸 Screenshots (if applicable)
20+
<!-- Add screenshots to help explain your changes -->
21+
22+
## 🔗 Related Issues
23+
<!-- Link to any related issues -->
24+
Closes #<!-- Issue number -->

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 90
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 14
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
id-token: write
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
always-auth: true
18+
node-version: 20
19+
cache: 'yarn'
20+
registry-url: 'https://registry.npmjs.org/'
21+
- name: Install dependencies
22+
run: yarn install
23+
- name: Build the plugin
24+
run: yarn build
25+
- name: Get the release tag version
26+
id: get_version
27+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
28+
- name: Set package version
29+
run: yarn version --new-version "${{ steps.get_version.outputs.VERSION }}" --no-git-tag-version
30+
- name: Publish package (beta)
31+
if: 'github.event.release.prerelease'
32+
run: yarn publish --access public --tag beta
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
- name: Publish package (latest)
36+
if: '!github.event.release.prerelease'
37+
run: yarn publish --access public
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
- name: Push version bump
41+
uses: stefanzweifel/git-auto-commit-action@v4
42+
with:
43+
commit_message: 'chore: Bump version to ${{ steps.get_version.outputs.VERSION }}'
44+
file_pattern: 'package.json'
45+
branch: main

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout project
15+
uses: actions/checkout@v1
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: '20.x'
20+
registry-url: https://registry.npmjs.org/
21+
- name: Install package
22+
run: yarn install
23+
- name: Generate coverage report
24+
run: yarn test:server:ci
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v5
27+
with:
28+
directory: ./server/coverage/
29+
fail_ci_if_error: true
30+
flags: unittests
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
verbose: true

.gitignore

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
############################
4+
# OS X
5+
############################
6+
7+
.DS_Store
8+
.AppleDouble
9+
.LSOverride
10+
Icon
11+
.Spotlight-V100
12+
.Trashes
13+
._*
14+
15+
16+
############################
17+
# Linux
18+
############################
19+
20+
*~
21+
22+
23+
############################
24+
# Windows
25+
############################
26+
27+
Thumbs.db
28+
ehthumbs.db
29+
Desktop.ini
30+
$RECYCLE.BIN/
31+
*.cab
32+
*.msi
33+
*.msm
34+
*.msp
35+
36+
37+
############################
38+
# Packages
39+
############################
40+
41+
*.7z
42+
*.csv
43+
*.dat
44+
*.dmg
45+
*.gz
46+
*.iso
47+
*.jar
48+
*.rar
49+
*.tar
50+
*.zip
51+
*.com
52+
*.class
53+
*.dll
54+
*.exe
55+
*.o
56+
*.seed
57+
*.so
58+
*.swo
59+
*.swp
60+
*.swn
61+
*.swm
62+
*.out
63+
*.pid
64+
65+
66+
############################
67+
# Logs and databases
68+
############################
69+
70+
.tmp
71+
*.log
72+
*.sql
73+
*.sqlite
74+
*.sqlite3
75+
76+
77+
############################
78+
# Misc.
79+
############################
80+
81+
*#
82+
ssl
83+
.idea
84+
nbproject
85+
.tsbuildinfo
86+
.eslintcache
87+
.env
88+
89+
90+
############################
91+
# Strapi
92+
############################
93+
94+
public/uploads/*
95+
!public/uploads/.gitkeep
96+
97+
98+
############################
99+
# Build
100+
############################
101+
102+
dist
103+
build
104+
105+
106+
############################
107+
# Node.js
108+
############################
109+
110+
lib-cov
111+
lcov.info
112+
pids
113+
logs
114+
results
115+
node_modules
116+
.node_history
117+
118+
119+
############################
120+
# Package managers
121+
############################
122+
123+
.yarn/*
124+
!.yarn/cache
125+
!.yarn/unplugged
126+
!.yarn/patches
127+
!.yarn/releases
128+
!.yarn/sdks
129+
!.yarn/versions
130+
.pnp.*
131+
yarn-error.log
132+
133+
134+
############################
135+
# Tests
136+
############################
137+
138+
coverage
139+
junit.xml
140+
141+
############################
142+
# IDE
143+
############################
144+
145+
.vscode

0 commit comments

Comments
 (0)