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

Themes selector page #2

Merged
merged 41 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
40ad5fc
feat: add display themes selector with static json/examples
labithiotis Mar 3, 2024
6810bb2
feat: improve color preview and themes layout
labithiotis Mar 4, 2024
94069a8
chore: fix player and share theme issues
labithiotis Mar 4, 2024
524e326
chore: update preview svg with some colours,
labithiotis Mar 4, 2024
2a74126
chore: remove themeId util function
labithiotis Mar 5, 2024
5563a2e
chore: add style tokens
labithiotis Mar 5, 2024
9d79ecc
feat: add remix with vite
labithiotis Mar 8, 2024
a77a9b5
chore: make theme ui toggle work with server and client seemlessly
labithiotis Mar 8, 2024
8c080b9
chore: fix the toggle
labithiotis Mar 9, 2024
519a96f
chore: add script to fetch zed schemas from ext repo
labithiotis Mar 10, 2024
7ac4993
chore: make cf workers work
labithiotis Mar 11, 2024
0f04aab
feat: make theme page work due to ajv cf issue
labithiotis Mar 12, 2024
6420b22
chore: make preact signals work
labithiotis Mar 13, 2024
d9abf51
chore: make share work with kv
labithiotis Mar 15, 2024
62a1122
chore: remove dead code
labithiotis Mar 16, 2024
cff88bc
chore: tweak ui for themes preview
labithiotis Mar 16, 2024
7ecc27c
chore: update readme
labithiotis Mar 16, 2024
98c798d
chore: bump wrangler versions
labithiotis Mar 16, 2024
0ec595c
chore: try with uppercase kv names
labithiotis Mar 17, 2024
180dfd0
chore: wip
labithiotis Mar 17, 2024
83a2c6e
chore: try to simplier cloudflare setup
labithiotis Mar 19, 2024
97ac058
chore: simplify types and remove dead code
labithiotis Mar 19, 2024
64a06b9
chore: try with asset dir again
labithiotis Mar 19, 2024
0c683a8
chore: removed preact/signals as it doesn't like remix/vite 😭 (can't …
labithiotis Mar 20, 2024
492bad6
chore: try not setting asset exclude
labithiotis Mar 20, 2024
935aa98
chore: add todo
labithiotis Mar 20, 2024
828bc4c
chore: remove ttl
labithiotis Mar 20, 2024
f7dac4b
chore: add padding bottom
labithiotis Mar 20, 2024
e06b2bf
chore: clean dev scripts and flat some directories
labithiotis Mar 20, 2024
3598d07
chore: allow root var in style and remove console logs
labithiotis Mar 20, 2024
7f3cbbc
chore: add correct meta tags, and set aria labels
labithiotis Mar 20, 2024
013a8e1
chore: try setting min width to avoid layout shift
labithiotis Mar 20, 2024
0d28af4
chore: set correct name for meta 🤦
labithiotis Mar 20, 2024
bd49fa0
chore: use brighter color for title
labithiotis Mar 20, 2024
aeade46
chore: make font loading non blocking
labithiotis Mar 20, 2024
ec448b4
chore: make it fit
labithiotis Mar 20, 2024
537f7b3
chore: sync local KV and add version hash, also add robots.txt & site…
labithiotis Mar 21, 2024
7e6242c
chore: change url to /edit when you edit theme
labithiotis Mar 21, 2024
6aad7a9
chore: improve the color previews
labithiotis Mar 21, 2024
5b549a0
chore: improve ui and add actions to test lint,tsc,fmt
labithiotis Mar 27, 2024
d72ae21
chore: add ci
labithiotis Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
commonjs: true,
es6: true,
},
ignorePatterns: ['themeValidatorAjv.mjs'],

// Base config
extends: ['eslint:recommended'],

overrides: [
// React
{
files: ['**/*.{js,jsx,ts,tsx}'],
plugins: ['react', 'jsx-a11y'],
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
],
settings: {
react: {
version: 'detect',
},
formComponents: ['Form'],
linkComponents: [
{ name: 'Link', linkAttribute: 'to' },
{ name: 'NavLink', linkAttribute: 'to' },
],
'import/resolver': {
typescript: {},
},
},
},

// Typescript
{
files: ['**/*.{ts,tsx}'],
plugins: ['@typescript-eslint', 'import'],
parser: '@typescript-eslint/parser',
settings: {
'import/internal-regex': '^~/',
'import/resolver': {
node: {
extensions: ['.ts', '.tsx'],
},
typescript: {
alwaysTryTypes: true,
},
},
},
extends: ['plugin:@typescript-eslint/recommended', 'plugin:import/recommended', 'plugin:import/typescript'],
},

// Node
{
files: ['.eslintrc.cjs'],
env: {
node: true,
},
},
],
};
34 changes: 34 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
ci:
if: ${{ !contains(github.event.pull_request.title, '[no-ci]') }}
name: CI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline

- name: Format
run: pnpm run test:fmt

- name: Lint
run: pnpm run test:lint

- name: Type Check
run: pnpm run test:tsc
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "monthly"
interval: 'monthly'
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ node_modules
dist
dist-ssr
*.local
.cache
build
.env
.tmp

.wrangler

# Editor directories and files
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
themeValidatorAjv.mjs
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tabWidth": 2,
"printWidth": 80,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5",
"plugins": ["prettier-plugin-tailwindcss"]
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-organize-imports"]
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions app/assets/icons/at_sign.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions app/assets/icons/bell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/bell_off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/bell_ring.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions app/assets/icons/circle_check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/icons/command.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
4 changes: 4 additions & 0 deletions app/assets/icons/conversations.svg
4 changes: 2 additions & 2 deletions src/assets/icons/copilot.svg → app/assets/icons/copilot.svg
Loading
Loading