Skip to content

Commit 9ed90d6

Browse files
committed
initial commit
0 parents  commit 9ed90d6

File tree

274 files changed

+28824
-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.

274 files changed

+28824
-0
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@svitejs/changesets-changelog-github-compact",
5+
{ "repo": "huntabyte/paneforge" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [huntabyte]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: huntabyte
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+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Report Docs Issue
2+
description: Suggest an addition or modification to the documentation
3+
labels: ["documentation"]
4+
body:
5+
- type: dropdown
6+
attributes:
7+
label: Change Type
8+
description: What type of change are you proposing?
9+
options:
10+
- Addition
11+
- Correction
12+
- Removal
13+
- Cleanup (formatting, typos, etc.)
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
attributes:
19+
label: Proposed Changes
20+
description: Describe the proposed changes and why they are necessary
21+
validations:
22+
required: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 🛠️ Request New Feature
2+
description: Let us know what you would like to see added.
3+
labels: ["enhancement"]
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Describe the feature in detail (code, mocks, or screenshots encouraged)
9+
validations:
10+
required: true
11+
- type: dropdown
12+
id: category
13+
attributes:
14+
label: What type of pull request would this be?
15+
options:
16+
- "New Feature"
17+
- "Enhancement"
18+
- "Guide"
19+
- "Docs"
20+
- "Other"
21+
- type: textarea
22+
id: references
23+
attributes:
24+
label: Provide relevant links or additional information.
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "🐛 Bug report"
2+
description: Report an issue with paneforge
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
### Thanks for taking the time to create an issue! Please search open/closed issues before submitting, as the issue may have already been reported/addressed.
8+
- type: markdown
9+
attributes:
10+
value: |
11+
#### If you aren't sure if something is a bug or not, please do not create an issue, instead ask in one of the following channels:
12+
- [Discussions](https://github.com/huntabyte/formsnap/discussions/new?category=help)
13+
- [Discord](https://hbyt.us/discord)
14+
- type: textarea
15+
id: bug-description
16+
attributes:
17+
label: Describe the bug
18+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us how in the description. Thanks!
19+
placeholder: Bug description
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: reproduction
24+
attributes:
25+
label: Reproduction
26+
description: |
27+
Please provide a link to a repo or Stackblitz that can reproduce the problem you ran into. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided within a reasonable time-frame, the issue will be closed.
28+
placeholder: Reproduction
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: logs
33+
attributes:
34+
label: Logs
35+
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text."
36+
render: bash
37+
- type: textarea
38+
id: system-info
39+
attributes:
40+
label: System Info
41+
description: Output of `npx envinfo --system --npmPackages svelte,formsnap,@sveltejs/kit,sveltekit-superforms,zod --binaries --browsers`
42+
render: bash
43+
placeholder: System, Binaries, Browsers
44+
validations:
45+
required: true
46+
- type: dropdown
47+
id: severity
48+
attributes:
49+
label: Severity
50+
description: Select the severity of this issue
51+
options:
52+
- annoyance
53+
- blocking an upgrade
54+
- blocking all usage of Formsnap
55+
validations:
56+
required: true

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Get Help
4+
url: https://github.com/huntabyte/formsnap/discussions/new?category=help
5+
about: If you can't get something to work the way you expect, open a question in our discussion forums.
6+
- name: Discord
7+
url: https://hbyt.us/discord
8+
about: If you need to have a back-and-forth conversation, join the Discord server.

.github/workflows/ci.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
Check:
15+
name: Run svelte-check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- uses: pnpm/action-setup@v2
23+
with:
24+
version: 8
25+
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 18
29+
30+
# PNPM Store cache setup
31+
- name: Get pnpm store directory
32+
id: pnpm-cache
33+
run: |
34+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
35+
- name: Setup pnpm cache
36+
uses: actions/cache@v3
37+
with:
38+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
39+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40+
restore-keys: |
41+
${{ runner.os }}-pnpm-store-
42+
43+
- name: Install dependencies
44+
run: pnpm install
45+
46+
- name: Build
47+
run: pnpm build
48+
49+
- name: Sync
50+
run: pnpm sync
51+
52+
- name: Run svelte-check
53+
run: pnpm check
54+
55+
Lint:
56+
runs-on: ubuntu-latest
57+
name: Lint
58+
steps:
59+
- uses: actions/checkout@v3
60+
with:
61+
fetch-depth: 0
62+
63+
- name: Install Node.JS
64+
uses: actions/setup-node@v3
65+
with:
66+
node-version: 18
67+
68+
- uses: pnpm/action-setup@v2
69+
name: Install pnpm
70+
id: pnpm-install
71+
with:
72+
version: 8
73+
74+
# PNPM Store cache setup
75+
- name: Get pnpm store directory
76+
id: pnpm-cache
77+
run: |
78+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
79+
80+
- name: Setup pnpm cache
81+
uses: actions/cache@v3
82+
with:
83+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
84+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
85+
restore-keys: |
86+
${{ runner.os }}-pnpm-store-
87+
88+
- name: Install dependencies
89+
run: pnpm install
90+
91+
- run: pnpm lint

.github/workflows/docs-preview.yml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#################### 🚧 WARNING: READ THIS BEFORE USING THIS FILE 🚧 ####################
2+
#
3+
#
4+
#
5+
# IF YOU DON'T KNOW WHAT YOU'RE DOING, YOU CAN EASILY LEAK SECRETS BY USING A
6+
# `pull_request_target` WORKFLOW INSTEAD OF `pull_request`! SERIOUSLY, DO NOT
7+
# BLINDLY COPY AND PASTE THIS FILE WITHOUT UNDERSTANDING THE FULL IMPLICATIONS
8+
# OF WHAT YOU'RE DOING! WE HAVE TESTED THIS FOR OUR OWN USE CASES, WHICH ARE
9+
# NOT NECESSARILY THE SAME AS YOURS! WHILE WE AREN'T EXPOSING ANY OF OUR SECRETS,
10+
# ONE COULD EASILY DO SO BY MODIFYING OR ADDING A STEP TO THIS WORKFLOW!
11+
#
12+
#
13+
#
14+
#################### 🚧 WARNING: READ THIS BEFORE USING THIS FILE 🚧 ####################
15+
16+
name: Docs - Preview Deployment
17+
on:
18+
pull_request_target:
19+
paths:
20+
- sites/docs/**
21+
- packages/paneforge/**
22+
23+
# cancel in-progress runs on new commits to same PR (github.event.number)
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
deploy-preview:
30+
permissions:
31+
contents: read
32+
pull-requests: write
33+
deployments: write
34+
runs-on: ubuntu-latest
35+
name: Deploy Preview to Cloudflare Pages (admin)
36+
steps:
37+
- uses: actions/checkout@v3
38+
with:
39+
ref: ${{ github.event.pull_request.head.ref }}
40+
repository: ${{ github.event.pull_request.head.repo.full_name }}
41+
- uses: pnpm/action-setup@v2
42+
with:
43+
version: 8
44+
- uses: actions/setup-node@v3
45+
with:
46+
node-version: 20
47+
48+
# PNPM Store cache setup
49+
- name: Get pnpm store directory
50+
id: pnpm-cache
51+
run: |
52+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
53+
- name: Setup pnpm cache
54+
uses: actions/cache@v3
55+
with:
56+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
57+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58+
restore-keys: |
59+
${{ runner.os }}-pnpm-store-
60+
61+
- name: Install dependencies
62+
run: pnpm install
63+
64+
- name: Build site
65+
run: pnpm build
66+
67+
- name: Deploy to Cloudflare Pages
68+
id: cloudflare-pages-deploy
69+
uses: AdrianGonz97/refined-cf-pages-action@v1
70+
with:
71+
apiToken: ${{ secrets.CF_API_TOKEN }}
72+
accountId: ${{ secrets.CF_ACCOUNT_ID }}
73+
githubToken: ${{ secrets.GITHUB_TOKEN }}
74+
projectName: paneforge
75+
directory: ./.svelte-kit/cloudflare
76+
workingDirectory: sites/docs
77+
deploymentName: Preview

.github/workflows/docs-production.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Docs Production Deployment
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- sites/docs/**
8+
- packages/paneforge/**
9+
10+
concurrency: ${{ github.workflow }}-${{ github.ref }}
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
deployments: write
18+
name: Publish to Cloudflare Pages
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: pnpm/action-setup@v2
22+
with:
23+
version: 8
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: 20
27+
28+
# PNPM Store cache setup
29+
- name: Get pnpm store directory
30+
id: pnpm-cache
31+
run: |
32+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
33+
- name: Setup pnpm cache
34+
uses: actions/cache@v3
35+
with:
36+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
37+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-store-
40+
41+
- name: Install dependencies
42+
run: pnpm install
43+
44+
- name: Build site
45+
run: pnpm build
46+
47+
- name: Deploy to Cloudflare Pages
48+
uses: AdrianGonz97/refined-cf-pages-action@v1
49+
with:
50+
apiToken: ${{ secrets.CF_API_TOKEN }}
51+
accountId: ${{ secrets.CF_ACCOUNT_ID }}
52+
githubToken: ${{ secrets.GITHUB_TOKEN }}
53+
projectName: paneforge
54+
directory: ./.svelte-kit/cloudflare
55+
workingDirectory: sites/docs
56+
deploymentName: Production

0 commit comments

Comments
 (0)