Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release V2 #1206

Merged
merged 536 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
536 commits
Select commit Hold shift + click to select a range
ed17446
adds 20.7.0 to upper node limit
stolinski Sep 27, 2023
9327800
Cards layout
wesbos Sep 27, 2023
08beb6c
fixes player not starting over
stolinski Sep 28, 2023
5540d29
show card styles and filtering rework
wesbos Sep 28, 2023
1fb8211
add pagination
wesbos Sep 28, 2023
4491383
Merge pull request #1094 from syntaxfm/style-tweaks-2
wesbos Sep 28, 2023
62ffcba
adds a new show_type on show to derive show type on import, also add …
stolinski Sep 28, 2023
aa51d28
fixes node versions in packagejson
stolinski Sep 28, 2023
3bee571
Merge pull request #1095 from syntaxfm/importer_refresh
stolinski Sep 28, 2023
4974dce
Merge branch 'v2' of github.com:syntaxfm/website into build-cleanup
stolinski Sep 28, 2023
c482c1f
fixes issue where player was not starting at the right spot when chan…
stolinski Sep 28, 2023
a1507d5
moves PER_PAGE to consts file, to get /shows loading
stolinski Sep 28, 2023
b1c3826
Replace slugo with slugify
RatulMaharaj Sep 28, 2023
96982ce
Remove slugo as a dependency
RatulMaharaj Sep 28, 2023
b194285
implement episode type filtering
wesbos Sep 29, 2023
1622128
Merge pull request #1098 from syntaxfm/header-styles
wesbos Sep 29, 2023
b0e1de2
fix show query types
wesbos Sep 29, 2023
b9bdd2e
Merge pull request #1099 from syntaxfm/header-styles
wesbos Sep 29, 2023
1b4158a
gets prod build working again fixes t= css bug
stolinski Sep 29, 2023
7f2ccc3
Merge branch 'v2' of github.com:syntaxfm/website into build-cleanup
stolinski Sep 29, 2023
fb5be9f
themes tabs for transcropts
stolinski Sep 29, 2023
10847ac
Merge pull request #1096 from syntaxfm/build-cleanup
stolinski Sep 29, 2023
abe6d86
Merge branch 'v2' of github.com:syntaxfm/website into transcripts-css
stolinski Sep 29, 2023
f8970a8
adds decodeURIComponent($page.url.pathname) to make active fire more …
stolinski Sep 29, 2023
1a02a2e
adds zindex to player to avoid transcript header overlap
stolinski Sep 29, 2023
71ed3fe
fixes transcript header background
stolinski Sep 29, 2023
83d874a
continues to sprinkle in variables to fix theming
stolinski Sep 29, 2023
3507207
completes theme token basedchanges to transcripts
stolinski Sep 29, 2023
7390dd4
Merge pull request #1106 from syntaxfm/transcripts-css
stolinski Sep 29, 2023
4d2eb15
page styles
wesbos Sep 29, 2023
2d5381f
merge v2
wesbos Sep 29, 2023
1271b01
Merge branch 'main' into api-routes
stolinski Sep 29, 2023
b3ef55b
adds latest show api route
stolinski Sep 29, 2023
f20e4a7
adds /shows
stolinski Sep 29, 2023
6cde401
completes api/shows/number route
stolinski Sep 29, 2023
e4ba632
listen links
wesbos Sep 29, 2023
9090a98
Merge pull request #1127 from syntaxfm/api-routes
stolinski Sep 29, 2023
874d1fb
Merge remote-tracking branch 'origin/main' into v2
stolinski Sep 29, 2023
563a213
double confirm drop button
stolinski Sep 29, 2023
1d3798b
adds grid col one to see all shows
stolinski Oct 2, 2023
6ed2f5f
fixes build, updates deps
stolinski Oct 2, 2023
8d00bbf
changes iTunes to apple podcasts
stolinski Oct 2, 2023
fa99c0e
adds fg as default a color with override to --link-fg
stolinski Oct 2, 2023
f1cffb5
actions bar
wesbos Oct 2, 2023
cf01d95
Merge pull request #1131 from syntaxfm/header-styles
wesbos Oct 2, 2023
f7b69ba
adds flip animations to pagination
stolinski Oct 2, 2023
35c6553
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 2, 2023
5a4bbea
rewrites svelte class conditional
stolinski Oct 2, 2023
244ec6c
tab styles
wesbos Oct 2, 2023
e1cf6d7
Merge pull request #1132 from syntaxfm/header-styles
wesbos Oct 2, 2023
b8d20cd
remove hard coded nick
wesbos Oct 2, 2023
6b400f4
Merge pull request #1133 from syntaxfm/header-styles
wesbos Oct 2, 2023
d65fcf9
style edits to transcript table of contents
wesbos Oct 2, 2023
62026a6
Merge pull request #1134 from syntaxfm/header-styles
wesbos Oct 2, 2023
d93186d
removes Radnika
stolinski Oct 2, 2023
57c5a2d
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 2, 2023
13184e4
italics are back baby
wesbos Oct 2, 2023
9d5f295
bold buttons are back baby
wesbos Oct 2, 2023
6ef3f61
Merge pull request #1135 from syntaxfm/v2
wesbos Oct 2, 2023
173d66c
conditionally show transcript
wesbos Oct 2, 2023
6cfff73
aligns icons and tunes up apple svg
stolinski Oct 2, 2023
8b32acb
starts work on OG Image gen
stolinski Oct 3, 2023
f9ec762
Adds always dark zone and inverse zone to system theme
stolinski Oct 4, 2023
3b427df
adds og image routes with adapted design
stolinski Oct 4, 2023
cc48669
removes some unneeded imports
stolinski Oct 4, 2023
72c0d4d
Grit generator, dark theme improvements
wesbos Oct 4, 2023
a7c5969
Merge branch 'v2' into header-styles
wesbos Oct 4, 2023
ab11f59
Merge pull request #1139 from syntaxfm/header-styles
wesbos Oct 4, 2023
0e5eb3e
fixes default og iamges
stolinski Oct 4, 2023
1f224b6
completes meta system with custom og images
stolinski Oct 4, 2023
89609ba
Merge remote-tracking branch 'origin/v2' into og_image
stolinski Oct 4, 2023
f8a90e7
fixes issue where theme wasn't getting defaulted to system
stolinski Oct 4, 2023
c21f30f
Merge pull request #1141 from syntaxfm/og_image
stolinski Oct 4, 2023
3e818a6
updates chrome executable to be function
stolinski Oct 4, 2023
92dba5d
removes unused code
stolinski Oct 4, 2023
04ac92f
Merge pull request #1142 from syntaxfm/og_image
stolinski Oct 4, 2023
d350095
makes og image https
stolinski Oct 4, 2023
3cd64cc
about page tweaks
wesbos Oct 5, 2023
8e48d07
some spice
wesbos Oct 5, 2023
0bbb082
about desc
wesbos Oct 5, 2023
119ec13
merge new folder structure
wesbos Oct 5, 2023
026c395
Merge pull request #1144 from syntaxfm/header-styles
wesbos Oct 5, 2023
9748389
Add static pages
benvinegar Sep 29, 2023
c7393ba
Add page server load function for /pages/*.md
benvinegar Sep 29, 2023
9d6943a
Add privacy content + parse html inside markdown
benvinegar Oct 5, 2023
9a07e61
Move pages/ to (site)/pages, update privacy notice
benvinegar Oct 5, 2023
42bf5f6
Fix table
benvinegar Oct 5, 2023
174b319
adds brought to you by sentry in home page hero
wesbos Oct 5, 2023
9da0a25
Merge pull request #1146 from syntaxfm/header-styles
wesbos Oct 5, 2023
b9681ed
revert pagination goof
wesbos Oct 5, 2023
c966ed7
make bens face smaller
wesbos Oct 5, 2023
9d82a45
Nav rework, potluck page
wesbos Oct 6, 2023
7c3949f
Merge pull request #1147 from syntaxfm/header-styles
wesbos Oct 6, 2023
4fcb98a
hide logo on home page
wesbos Oct 6, 2023
16e3f42
Upgrade deepgram SDK to use Nova-2 early access
wesbos Oct 9, 2023
6d47c27
integrate anthropic into AI notes
wesbos Oct 9, 2023
a831a3f
Merge pull request #1151 from syntaxfm/ai-backlog
wesbos Oct 9, 2023
3e7193f
do not display # if topic starts with one
wesbos Oct 10, 2023
979ad61
Merge pull request #1153 from syntaxfm/header-styles
wesbos Oct 10, 2023
a10d19b
Merge branch 'v2' into ai-backlog
wesbos Oct 10, 2023
c8d1b7a
move header into hero on home page
wesbos Oct 10, 2023
6c9c74d
Merge pull request #1156 from syntaxfm/ai-backlog
wesbos Oct 10, 2023
dbc9328
footer grit
wesbos Oct 10, 2023
87f2c5d
Merge pull request #1157 from syntaxfm/ai-backlog
wesbos Oct 10, 2023
83b3170
updates deps and fixes audio playing test
stolinski Oct 11, 2023
214e72d
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 11, 2023
fb6a71e
prevents nav breaking
stolinski Oct 11, 2023
a1e40e0
bring sentry squiggle png local
wesbos Oct 11, 2023
395019b
Merge pull request #1159 from syntaxfm/ai-backlog
wesbos Oct 11, 2023
bf6d359
Merge pull request #1145 from syntaxfm/add-static-pages
wesbos Oct 11, 2023
8f0d3da
add provider to AI show notes
wesbos Oct 11, 2023
c3ccde4
Merge pull request #1160 from syntaxfm/ai-backlog
wesbos Oct 11, 2023
55c52af
Merge branch 'v2' into fix-1089
stolinski Oct 11, 2023
c035043
Merge pull request #1097 from RatulMaharaj/fix-1089
stolinski Oct 11, 2023
3592bbc
updates svg path and creates serverside wave svg
stolinski Oct 11, 2023
4f89140
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 11, 2023
05ebe7b
changes slugify to speakingurl and makes shows rout into show
stolinski Oct 11, 2023
c9de1a8
updates show number redirect
stolinski Oct 11, 2023
509a80e
fixes url route structure
stolinski Oct 11, 2023
e5a72d1
removes swag link
stolinski Oct 11, 2023
4dd34ac
fixes meta tags
stolinski Oct 12, 2023
68e0ed5
tweaks homepage heading lineup to make Syntax Podcast an h1
stolinski Oct 12, 2023
17d9934
updates about description to use color-mix with oklab for transparency
stolinski Oct 12, 2023
b7772d1
tweaks about css more
stolinski Oct 12, 2023
a2b14cb
adds border on dark class
stolinski Oct 12, 2023
24639e1
Cron job WIP
wesbos Oct 12, 2023
959954d
Add increased timeouts for vercel
wesbos Oct 12, 2023
7d0898a
add silly photo for Kaitlin
wesbos Oct 12, 2023
08b08a9
Merge pull request #1166 from syntaxfm/kaitlin
wesbos Oct 12, 2023
fba50b0
default platform to mac to avoid page load flicker
wesbos Oct 12, 2023
939ac35
fixes database sync
stolinski Oct 12, 2023
c03adb1
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 12, 2023
d97c333
create variable SVG color hook for background images
wesbos Oct 13, 2023
7769d07
add client side computed variable component
wesbos Oct 13, 2023
7edf7a6
Merge pull request #1167 from syntaxfm/kaitlin
wesbos Oct 13, 2023
1119ed0
turn on transcript cron
wesbos Oct 16, 2023
55edb72
Merge pull request #1165 from syntaxfm/cron
wesbos Oct 16, 2023
546916f
fix trasncript cron path
wesbos Oct 16, 2023
e577cd6
speeling
wesbos Oct 16, 2023
3aaa187
s
wesbos Oct 16, 2023
c83ce31
logs
wesbos Oct 16, 2023
198d892
move to cron secrets
wesbos Oct 16, 2023
74b037b
add bearer prefix to header
wesbos Oct 16, 2023
d744c20
add bearer prefix to header
wesbos Oct 16, 2023
5594350
add debug header
wesbos Oct 16, 2023
41a0775
refactor auth into function
wesbos Oct 16, 2023
b4db3eb
test to include ffmpeg core explicitly
wesbos Oct 16, 2023
68c7739
auth refactor
wesbos Oct 16, 2023
f4c5d99
changes build command to use i changed the sschema
stolinski Oct 16, 2023
e83ae73
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 16, 2023
bb335d3
wasm path magic
wesbos Oct 16, 2023
9c3a011
fixes build command
stolinski Oct 16, 2023
b31b0a7
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 16, 2023
0b316f6
makes show id a non generated uuid for predictable data locations
stolinski Oct 16, 2023
f04d628
Rename and fix redirect
RatulMaharaj Oct 17, 2023
49201b8
vercel please
wesbos Oct 17, 2023
b2763e8
revert
wesbos Oct 18, 2023
fb32645
try static path
wesbos Oct 18, 2023
c84a8b9
dirname
wesbos Oct 18, 2023
3954554
path
wesbos Oct 18, 2023
49b992c
slash
wesbos Oct 18, 2023
385cec5
static path read
wesbos Oct 18, 2023
b5d5280
revert
wesbos Oct 18, 2023
f5a67a1
files
wesbos Oct 18, 2023
7bb4cd4
files
wesbos Oct 18, 2023
3e47530
files promise
wesbos Oct 18, 2023
9694413
path
wesbos Oct 18, 2023
b77a76c
core
wesbos Oct 18, 2023
16861a0
assets folder
wesbos Oct 18, 2023
b0f5967
assets folder
wesbos Oct 18, 2023
c82f561
logging
wesbos Oct 18, 2023
9f2ab25
absolute path
wesbos Oct 18, 2023
0ffc112
help
wesbos Oct 18, 2023
8ec23fd
asdfasdf
wesbos Oct 18, 2023
1214442
asdfasdf
wesbos Oct 18, 2023
e87bb7e
asdfasdf
wesbos Oct 18, 2023
018c29c
try require
wesbos Oct 18, 2023
85fa45b
waves
wesbos Oct 18, 2023
2bc1425
ewavesasdfsadf
wesbos Oct 18, 2023
19ab1df
asdfasdF
wesbos Oct 18, 2023
4e1e989
asdfasdF
wesbos Oct 18, 2023
39b8736
why
wesbos Oct 18, 2023
8c1c06c
wasm path
wesbos Oct 18, 2023
cd1ecbd
remove waves
wesbos Oct 18, 2023
1d817d0
PLEASE
wesbos Oct 18, 2023
6330d14
asdfasdf
wesbos Oct 18, 2023
6fa2153
try at runtime
wesbos Oct 18, 2023
e4b6b27
what about reading it
wesbos Oct 18, 2023
a0d89c7
reinstate copy script
wesbos Oct 18, 2023
672c5f8
flag paths
wesbos Oct 18, 2023
e78bd60
move worker over
wesbos Oct 18, 2023
588f8ef
worker
wesbos Oct 18, 2023
bf2fac8
commonjs kill me
wesbos Oct 18, 2023
46efaab
refactors about page to use .grid class for mobile friendlienss
stolinski Oct 18, 2023
a323fbb
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 18, 2023
1b1ad54
vercel and local compat
wesbos Oct 18, 2023
ee39a64
db issues
wesbos Oct 18, 2023
ae5a206
adds padding column to layout grid in mobile
stolinski Oct 18, 2023
a906521
adds value_as_label for drop downs and tweaks mobile styles for /show
stolinski Oct 18, 2023
351d6ba
makes subscribe links align center
stolinski Oct 18, 2023
3d550e5
rewrite transcript DB logic for multiple transactions
wesbos Oct 19, 2023
0cbf5d9
Tweak prompt
wesbos Oct 19, 2023
a9df604
Merge pull request #1179 from syntaxfm/issue-1175
wesbos Oct 19, 2023
ec8d5fa
ability to delete a transcript for regeneration
wesbos Oct 19, 2023
3cf13bd
increase timeout for vercel
wesbos Oct 19, 2023
f257e34
increase frequency of AI run
wesbos Oct 19, 2023
ebdb83f
Merge pull request #1180 from RatulMaharaj/fix-1774
wesbos Oct 19, 2023
63c44f0
Merge pull request #1169 from syntaxfm/colored-svg
wesbos Oct 19, 2023
74d3cf5
correct sentry link
wesbos Oct 19, 2023
a8eb5a2
only highlights show progress if viewing the show you are listening t…
wesbos Oct 19, 2023
6dbdf28
Merge pull request #1184 from syntaxfm/issue-1084
wesbos Oct 19, 2023
dabb305
Add dynamic subtle color for transcripts page. Fixes 1177
wesbos Oct 19, 2023
b7f828d
Merge pull request #1185 from syntaxfm/issue-1177
wesbos Oct 19, 2023
ac6eeaf
add type import to avoid importing server on client
wesbos Oct 19, 2023
6c6bf4b
stop loading of transcript words as it is too large
wesbos Oct 19, 2023
2521e20
Merge branch 'v2' into issue-1182
wesbos Oct 19, 2023
012a015
Merge pull request #1186 from syntaxfm/issue-1182
wesbos Oct 19, 2023
55b6762
link back to show page from player. Fixes #1183
wesbos Oct 19, 2023
998cf0b
Merge pull request #1188 from syntaxfm/issue-1183
wesbos Oct 19, 2023
4818e89
add slug util
wesbos Oct 19, 2023
fc105e1
Merge pull request #1189 from syntaxfm/issue-1183
wesbos Oct 19, 2023
85bfd0c
add sentry UTM links
wesbos Oct 19, 2023
514744c
Page loading indictaor
wesbos Oct 19, 2023
a9e2dea
Merge pull request #1190 from syntaxfm/issue-1181
wesbos Oct 19, 2023
bd5898b
change flagger to use show number as slash causes it to freak out
wesbos Oct 19, 2023
5734590
scrollbars. Closes #1187
wesbos Oct 19, 2023
4710e09
better dark mode on mobile
wesbos Oct 19, 2023
ae3f5f4
Merge pull request #1197 from syntaxfm/issue-1194
wesbos Oct 19, 2023
a48735c
active nav items
wesbos Oct 19, 2023
1dbede2
Merge pull request #1199 from syntaxfm/issue-1196
wesbos Oct 19, 2023
31492a1
reinstate old url structure. Fixes #1198
wesbos Oct 19, 2023
80b1f14
Merge pull request #1200 from syntaxfm/issue-1198
wesbos Oct 19, 2023
9cbf1cc
remove transcript utterance from transcript display
wesbos Oct 19, 2023
bf419a1
Merge pull request #1201 from syntaxfm/issue-1193
wesbos Oct 19, 2023
2681de0
adds corect utm to footer
stolinski Oct 19, 2023
aeacc3e
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 19, 2023
2c3b69b
Merge branch 'main' of github.com:syntaxfm/website into v2
stolinski Oct 19, 2023
b7ebe7b
adds filtering to only show episodes released today or earlier
stolinski Oct 19, 2023
f3417a5
fixes /show-numb route
stolinski Oct 19, 2023
fe3ed68
add under construction banner
wesbos Oct 20, 2023
1652cde
Merge pull request #1204 from syntaxfm/under-construction
wesbos Oct 20, 2023
f164095
fixes issues where I made the filter for today's ep be at start of th…
stolinski Oct 20, 2023
b9c4e0a
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 20, 2023
453c9fc
mobile
wesbos Oct 20, 2023
e778402
Merge branch 'under-construction' into v2
wesbos Oct 20, 2023
9424d8f
fix card hover color
wesbos Oct 20, 2023
55141a7
fixes SelectMenu css for theme
stolinski Oct 20, 2023
7468de9
Merge branch 'v2' of github.com:syntaxfm/website into v2
stolinski Oct 20, 2023
496c2f1
replaces zebra with subtle
stolinski Oct 20, 2023
f17550f
removes zebra. RIP king
stolinski Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
40 changes: 40 additions & 0 deletions .github/workflows/build_and_reimport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and ReImport

on:
push:
branches:
- main
pull_request:
types: [closed]
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event_name == 'push'

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Build project
run: pnpm build

- name: Notify
run: |
STATUS=$?
if [[ "$STATUS" -eq 0 ]]; then
curl -X POST "http://beta.syntax.fm/webhooks/refresh" -H "Content-Type: application/json" -d '{"status":"success"}'
fi
44 changes: 44 additions & 0 deletions .github/workflows/playwright-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run_Playwright_Tests_on_PRs

on:
pull_request:
branches:
- v2

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: pnpm-setup
uses: pnpm/action-setup@v2
with:
version: 8

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.5.0
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Setup DB
run: pnpm db:generate

- name: Install playwright browsers
run: pnpx playwright install --with-deps

- name: Run Playwright tests
run: pnpm run test
env:
PUBLIC_GITHUB_ID: ${{ secrets.PUBLIC_GITHUB_ID }}
GH_SECRET: ${{ secrets.GH_SECRET }}
DEEPGRAM_SECRET: ${{ secrets.DEEPGRAM_SECRET }}
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
SENTRY_AUTH_TOKEN: ''
DATABASE_URL: ${{ secrets.DATABASE_URL }}
41 changes: 41 additions & 0 deletions .github/workflows/svelte_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run_Svelte_Check_on_PRs

on:
pull_request:
branches:
- v2

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: pnpm-setup
uses: pnpm/action-setup@v2
with:
version: 8

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.5.0
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Setup DB
run: pnpm db:generate

- name: Run Svelte Check
run: pnpm check
env:
PUBLIC_GITHUB_ID: ${{ secrets.PUBLIC_GITHUB_ID }}
GH_SECRET: ${{ secrets.GH_SECRET }}
DEEPGRAM_SECRET: ${{ secrets.DEEPGRAM_SECRET }}
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
SENTRY_AUTH_TOKEN: ''
DATABASE_URL: ${{ secrets.DATABASE_URL }}
22 changes: 18 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
.next/
node_modules/
.DS_store
*.log
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
haters/
# Sentry
.sentryclirc
transcripts-flagged/

test-results
.vercel
.env
.svelte-kit
.sentryclirc
.sentryclirc
# Temp
# core.wasm
4 changes: 1 addition & 3 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
fund=false
audit=false
legacy-peer-deps=true
engine-strict=true
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
],
"pluginSearchDirs": ["."],
"plugins": ["prettier-plugin-svelte"],
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none",
"useTabs": true
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"svelte.svelte-vscode",
"ardenivanov.svelte-intellisense",
"fivethree.vscode-svelte-snippets",
]
}
42 changes: 21 additions & 21 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
// These are all my auto-save configs
"editor.formatOnSave": true,
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
// show eslint icon at bottom toolbar
"eslint.alwaysShowStatus": true,
// tell the ESLint plugin to run on save
"editor.codeActionsOnSave": {
"source.fixAll": true
},
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
"prettier.disableLanguages": [
"javascript",
"javascriptreact"
],
}
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.prettier": true
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"cSpell.words": ["Deepgram", "openai", "popovertarget", "Tolinski", "waait"]
}
58 changes: 51 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,64 @@ A tasty treats podcast for Web Developers.

This is the site that runs [Syntax.fm](https://syntax.fm) — go there to listen to it!

This site is built on React and Next.js
This site is built on SvelteKit

## Requirements

- Node 18.1.2 or higher
- Node 20.0.0 or higher

## Database

Make sure to have a `DATABASE_URL` environmental variable set.

If this is your first time, run `pnpm db:push` to create the tables in your database.

Then run `pnpm db:seed` to scaffold out the user roles.

## Development

First you `npm install`
First you `pnpm install`

Then you `pnpm dev` and visit `http://localhost:5173`.

### Scripts

Generate Types `pnpm db:generate`
DB studio `pnpm db:studio`
DB Migrations `pnpm db:push`
DB Seed `pnpm db:seed`

### About this codebase

Just about all major code folders live in `/src` with the exception of `/shows` - the md source of truth for all podcast episodes as well as `/prisma` for our db connections and schema.

| | | Alias |
| ------------ | --------------------------------------------------------------------------------------------- | ---------- |
| `/actions` | Svelte Actions, these are reusable functions that act as lifecycle on DOM elements | $actions |
| `/assets` | Static assets that are used via @import | $assets |
| `/server` | All database and server-side only reusable code | $server |
| `/lib` | (SK Paradigm) Components and files that are used in more than one route | $lib |
| `/params` | (SK Paradigm) This is a SvelteKit specific folder to add validation on parameter based routes | |
| `/routes` | (SK Paradigm) File System based routing | |
| `/state` | Global State containers and resolvers | $state |
| `/styles` | CSS |
| `/utilities` | Global Utility functions | $utilities |

Then you `npm run dev` and visit `http://localhost:6969`.
### Stylin'

Then you do some work.
These are the available media queries

When you are ready for prime time, you can just submit a PR to this repo and it will be deployed once it's accepted.
```css
@custom-media --below_small (width < 400px);
@custom-media --below_med (width < 700px);
@custom-media --below_large (width < 900px);
@custom-media --below_xlarge (width < 1200px);
@custom-media --above_small (width > 400px);
@custom-media --above_med (width > 700px);
@custom-media --above_large (width > 900px);
@custom-media --above_xlarge (width > 1200px);

If you want to build your own version, just run `npm run build` and then I'd recommend deploying with `now`.
// Usage
@media (--above_med) {
}
```
Loading