Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
plugins: ['jsx-a11y'],
settings: { react: { version: '18.3' } },
settings: { react: { version: 'detect' } },
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,28 @@ jobs:
*) echo "::warning::CLIENT_SECRET does not start with GOCSPX- — is this an OAuth client secret?" ;;
esac

# A well-formed secret can still be the wrong one. Exchange the
# refresh token for an access token now — the call the upload makes
# first — so a rejected credential fails here, before a version is
# bumped and pushed. Only Google's error is printed, never a token.
trim() { printf '%s' "$1" | tr -d '[:space:]'; }
response="$(curl -sS -X POST https://oauth2.googleapis.com/token \
--data-urlencode "client_id=$(trim "$CLIENT_ID")" \
--data-urlencode "client_secret=$(trim "$CLIENT_SECRET")" \
--data-urlencode "refresh_token=$(trim "$REFRESH_TOKEN")" \
--data-urlencode "grant_type=refresh_token" || true)"
if ! printf '%s' "$response" | jq -e '.access_token' >/dev/null 2>&1; then
error="$(printf '%s' "$response" | jq -r '.error // empty' 2>/dev/null || true)"
description="$(printf '%s' "$response" | jq -r '.error_description // empty' 2>/dev/null || true)"
echo "::error::Google rejected the store credentials: ${error:-no response} ${description:+— $description}"
case "$error" in
invalid_client) echo "CLIENT_ID or CLIENT_SECRET is wrong — copy a current secret of this OAuth client from Google Cloud Console." ;;
invalid_grant) echo "REFRESH_TOKEN is expired, revoked, or was issued for another OAuth client — generate a new one." ;;
esac
exit 1
fi
echo "Store credentials accepted by Google"

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
27 changes: 27 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "base-nova",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/styles/global.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"rtl": false,
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"menuColor": "default",
"menuAccent": "subtle",
"registries": {
"@coss": "https://coss.com/ui/r/{name}.json"
}
}
566 changes: 566 additions & 0 deletions docs/redesign/README.md

Large diffs are not rendered by default.

180 changes: 180 additions & 0 deletions docs/redesign/mockups/Main.dc.html

Large diffs are not rendered by default.

197 changes: 197 additions & 0 deletions docs/redesign/mockups/Overflow.dc.html

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions docs/redesign/mockups/Saved.dc.html

Large diffs are not rendered by default.

239 changes: 239 additions & 0 deletions docs/redesign/mockups/Settings.dc.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "QueryCraft",
"version": "1.0.9",
"version": "1.0.10",
"description": "Inspect, edit, save, and replay URL query parameters on the active tab.",
"action": {
"default_popup": "src/popup/index.html",
Expand Down
Loading
Loading