Skip to content

Commit 3ceab5c

Browse files
authored
Merge pull request #106 from PFConnect/main
preview update with open-source
2 parents 7f56feb + 89887d3 commit 3ceab5c

259 files changed

Lines changed: 18495 additions & 17294 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.

.env.vite.preview

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_SERVER_URL=http://localhost:9902
1+
VITE_SERVER_URL=https://canary.pfconnect.online

.gitattributes

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
* text=auto eol=lf
2+
3+
*.js text eol=lf
4+
*.jsx text eol=lf
5+
*.ts text eol=lf
6+
*.tsx text eol=lf
7+
*.json text eol=lf
8+
*.css text eol=lf
9+
*.md text eol=lf
10+
*.yml text eol=lf
11+
*.yaml text eol=lf
12+
*.html text eol=lf
13+
*.scss text eol=lf
14+
*.less text eol=lf
15+
*.sh text eol=lf
16+
*.env* text eol=lf
17+
18+
* text=auto eol=lf
19+
20+
*.png binary
21+
*.jpg binary
22+
*.jpeg binary
23+
*.gif binary
24+
*.ico binary
25+
*.svg text eol=lf
26+
*.woff binary
27+
*.woff2 binary
28+
*.ttf binary
29+
*.eot binary
30+
*.pdf binary
31+
*.zip binary
32+
33+
.editorconfig text eol=lf
34+
.prettierrc text eol=lf

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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: PFConnect
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: pfconnect
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+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/CI.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
name: lint
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
paths-ignore:
8-
- 'README.md'
9-
pull_request:
10-
branches:
11-
- main
12-
paths-ignore:
13-
- 'README.md'
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- 'README.md'
9+
pull_request:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- 'README.md'
1414

1515
jobs:
16-
build:
17-
runs-on: ubuntu-latest
16+
build:
17+
runs-on: ubuntu-latest
1818

19-
steps:
20-
- name: Checkout repository
21-
uses: actions/checkout@v4
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
2222

23-
- name: Setup Node.js
24-
uses: actions/setup-node@v4
25-
with:
26-
node-version: 20
27-
cache: 'npm'
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: 'npm'
2828

29-
- name: Install dependencies
30-
run: npm ci --legacy-peer-deps
29+
- name: Install dependencies
30+
run: npm ci
3131

32-
- name: Run lint
33-
run: npm run lint
32+
- name: Run lint
33+
run: npm run lint
3434

35-
- name: Run type check
36-
run: npm run type-check
35+
- name: Run type check
36+
run: npm run type-check
3737

38-
- name: Build project
39-
run: npm run build-only
38+
- name: Build project
39+
run: npm run build-only

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"singleQuote": true,
33
"tabWidth": 2,
44
"trailingComma": "es5"
5-
}
5+
}

CODE_OF_CONDUCT.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
- Trolling, insulting or derogatory comments, and personal or political attacks
23+
- Public or private harassment
24+
- Publishing others' private information, such as a physical or email address, without their explicit permission
25+
- Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [support@pfconnect.online](mailto:support@pfconnect.online). All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64+
65+
### 4. Permanent Ban
66+
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74+
75+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76+
77+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78+
79+
[homepage]: https://www.contributor-covenant.org
80+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81+
[Mozilla CoC]: https://github.com/mozilla/diversity
82+
[FAQ]: https://www.contributor-covenant.org/faq
83+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributing to PFControl
2+
3+
Contributions are welcome!
4+
5+
## How to Contribute
6+
7+
- **Fork the repo** and open a pull request (to the `preview` branch so it can be tested on [canary.pfconnect.online](https://canary.pfconnect.online)).
8+
- **Follow the existing code style** and conventions.
9+
- **Run checks before submitting:**
10+
- `npm run lint` to check for lint errors.
11+
- `npm run format` to auto-format your code.
12+
- `npm run type-check` to ensure type safety.
13+
- **For larger changes**, open an issue first to discuss your proposal.
14+
- **Keep pull requests focused**: One feature or fix per PR is preferred.
15+
16+
## Commit Messages
17+
18+
- Use clear, descriptive commit messages.
19+
- Follow [Conventional Commits](https://www.conventionalcommits.org/) if possible (e.g., `fix: correct typo in login page`).
20+
21+
## Code Style
22+
23+
- Use Prettier for formatting (`npm run format`).
24+
- Use ESLint for linting (`npm run lint`).
25+
- Prefer TypeScript for all new code.
26+
- Keep functions and files small and focused.
27+
28+
## Testing
29+
30+
- Add or update tests for new features or bug fixes.
31+
- Ensure all tests pass before submitting a PR.
32+
- If possible, add unit tests for backend and frontend changes.
33+
34+
## Environment Variables
35+
36+
- If you're adding features that require environment variables, update `.env.example` and document them in this README.
37+
- Never commit secrets or real credentials.
38+
39+
## Documentation
40+
41+
- Update documentation and comments as needed.
42+
- If you add a new feature, update the relevant docs or README sections.
43+
44+
## Pull Request Checklist
45+
46+
Before submitting a PR, please ensure:
47+
48+
- [ ] Code compiles and builds (`npm run build`).
49+
- [ ] Lint and format checks pass.
50+
- [ ] Type checks pass.
51+
- [ ] PR description explains the change and references any related issues.
52+
53+
## Reporting Issues
54+
55+
- Search existing issues before opening a new one.
56+
- Provide clear steps to reproduce, expected vs. actual behavior, and screenshots/logs if possible.
57+
58+
## Code of Conduct
59+
60+
- Be respectful and inclusive.
61+
- No harassment, discrimination, or inappropriate behavior.
62+
63+
Thank you for helping to make PFControl better!

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88
COPY package*.json ./
99

1010
# Install ALL dependencies (including dev dependencies for build)
11-
RUN npm ci --legacy-peer-deps && npm cache clean --force
11+
RUN npm ci && npm cache clean --force
1212

1313
# Copy source code
1414
COPY . .
@@ -39,7 +39,7 @@ WORKDIR /app
3939
COPY package*.json ./
4040

4141
# Install only production dependencies
42-
RUN npm ci --omit=dev --legacy-peer-deps && npm cache clean --force
42+
RUN npm ci --omit=dev && npm cache clean --force
4343

4444
# Set NODE_ENV explicitly
4545
ENV NODE_ENV=production

Dockerfile.preview

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88
COPY package*.json ./
99

1010
# Install ALL dependencies (including dev dependencies for build)
11-
RUN npm ci --legacy-peer-deps && npm cache clean --force
11+
RUN npm ci && npm cache clean --force
1212

1313
# Copy source code
1414
COPY . .
@@ -39,7 +39,7 @@ WORKDIR /app
3939
COPY package*.json ./
4040

4141
# Install only production dependencies
42-
RUN npm ci --omit=dev --legacy-peer-deps && npm cache clean --force
42+
RUN npm ci --omit=dev && npm cache clean --force
4343

4444
# Set NODE_ENV explicitly
4545
ENV NODE_ENV=production

0 commit comments

Comments
 (0)