Skip to content

Commit 0a7fbc8

Browse files
authored
Refactor site layout (#4)
* Refactor layout, components, and views * Add workflows * Update name * Update README
1 parent bcd4a6c commit 0a7fbc8

29 files changed

+1004
-945
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
groups:
6+
github-actions:
7+
patterns:
8+
- '*'
9+
schedule:
10+
interval: 'weekly'

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '*/*'
8+
- '**'
9+
pull_request:
10+
branches:
11+
- '*'
12+
- '*/*'
13+
- '**'
14+
schedule:
15+
- cron: '21 23 * * 5'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
language: ['javascript', 'typescript']
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
with:
35+
persist-credentials: false
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
41+
queries: security-extended,security-and-quality
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v3

.github/workflows/dep-review.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Dependency Review'
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Checkout Repository'
12+
uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
15+
- name: 'Dependency Review'
16+
uses: actions/dependency-review-action@v4

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ dist/
33
build
44

55
coverage
6-
test
76

87
package-lock.json

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Code Cause Web
1+
# Code Cause Site
22

3-
> Main site for code cause (codecause.dev). Using [Lit](https://lit.dev/) but this may be subject to change.
3+
Main site for code cause
44

5+
<a href="https://discord.gg/HM5tZPhxg5"><img alt="discord-community" src="https://img.shields.io/badge/Join_Community-7289DA?style=flat&logo=discord&logoColor=white" /></a>
56
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)
67

78
---
@@ -15,11 +16,11 @@
1516
## Installation
1617

1718
```bash
18-
git clone git@github.com:Code-Cause-Collective/code-cause-web.git
19+
git clone git@github.com:Code-Cause-Collective/codecause.dev.git code-cause-site
1920
```
2021

2122
```bash
22-
cd code-cause-web
23+
cd code-cause-site
2324
```
2425

2526
```bash
@@ -34,17 +35,29 @@ npm install
3435
npm run dev
3536
```
3637

37-
`Build`
38+
`build`
3839

3940
```bash
4041
npm run build
4142
```
4243

44+
`lint`
45+
46+
```bash
47+
npm run lint
48+
```
49+
50+
`format`
51+
52+
```bash
53+
npm run format
54+
```
55+
4356
## Contributing
4457

45-
### Issues and PRs
58+
### Issues, Features, and PRs
4659

47-
If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, post question within our [slack community](https://join.slack.com/t/codecause/shared_invite/zt-38cobkbtz-u5kTq1cmKPZN9d5fpkZhkQ).
60+
If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, post question within our [discord community](https://discord.gg/HM5tZPhxg5).
4861

4962
### Submitting a pull request
5063

eslint.config.cjs

Lines changed: 0 additions & 35 deletions
This file was deleted.

eslint.config.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import liteslint from 'eslint-plugin-lit';
4+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
5+
import globals from 'globals';
6+
import { globalIgnores } from 'eslint/config';
7+
8+
export default [
9+
eslint.configs.recommended,
10+
...tseslint.configs.recommended,
11+
...tseslint.configs.stylistic,
12+
eslintPluginPrettierRecommended,
13+
liteslint.configs['flat/recommended'],
14+
globalIgnores(['dist/**/*']),
15+
{
16+
files: ['**/*.{js,ts}'],
17+
languageOptions: {
18+
ecmaVersion: 'latest',
19+
sourceType: 'module',
20+
globals: {
21+
...globals.browser,
22+
},
23+
},
24+
plugins: {},
25+
rules: {
26+
// Prettier
27+
'prettier/prettier': 'error',
28+
// Typescript
29+
'@typescript-eslint/consistent-type-definitions': 'off',
30+
'@typescript-eslint/no-explicit-any': 'warn',
31+
'@typescript-eslint/no-inferrable-types': 'off',
32+
'@typescript-eslint/explicit-function-return-type': 'error',
33+
'@typescript-eslint/prefer-for-of': 'off',
34+
// Lit
35+
'lit/no-legacy-template-syntax': 'error',
36+
'lit/no-template-arrow': 'off',
37+
},
38+
},
39+
{
40+
files: ['tests/**/*.{js,ts}'],
41+
rules: {},
42+
},
43+
];

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
content="https://res.cloudinary.com/dlsmexwxn/image/upload/v1736167788/ccw-img_htd4c0.png"
3838
/>
3939
<title>Code Cause</title>
40-
<base href="/" />
4140
<link rel="stylesheet" href="./src/main.css" />
4241
<script type="module" src="./src/main.ts"></script>
4342
</head>

0 commit comments

Comments
 (0)