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

feature/issue 26 header component #44

Merged
merged 40 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
8b75ce2
Create header.js
Auhseh May 5, 2024
807d95a
Update header.js
Auhseh May 5, 2024
ba72b84
Update header.js
Auhseh May 5, 2024
eb75476
Update header.js
Auhseh May 8, 2024
3c13dac
Update theme.css
Auhseh May 8, 2024
a367c50
Update header.js
Auhseh May 11, 2024
6f7c3fb
Create blog-landing.html
Auhseh May 11, 2024
e391143
Add files via upload
Auhseh May 11, 2024
9d95d98
Update blog-landing.html
Auhseh May 11, 2024
f4f03ab
Update blog-landing.html
Auhseh May 11, 2024
a7bab37
Update main.css
Auhseh May 11, 2024
26ef22e
Add files via upload
Auhseh May 12, 2024
35db879
Create blog-post
Auhseh May 12, 2024
f0dbe51
Delete src/pages/blog/blog-post
Auhseh May 13, 2024
e85dfc3
Delete src/pages/blog/blog-landing.html
Auhseh May 13, 2024
259ee48
Delete src/assets/Product-update-tag.svg
Auhseh May 13, 2024
1fe8cc0
Delete src/assets/article-placeholder.svg
Auhseh May 13, 2024
3acc514
Delete src/assets/article-placeholder-thumbnail.svg
Auhseh May 13, 2024
912ce87
Update header.js
Auhseh May 13, 2024
063734b
header storybook
thescientist13 May 13, 2024
f4eb536
remove unrelated styles
thescientist13 May 13, 2024
66e3bd0
storybook and constructable stylesheets compat
thescientist13 May 13, 2024
e290d40
basic test case file
thescientist13 May 13, 2024
6d0d013
refactor vite configuration
thescientist13 May 13, 2024
15afc12
add site and social links
thescientist13 May 13, 2024
929b34e
use HTML entity
thescientist13 May 13, 2024
6c9504a
refactor hardcoded conditions
thescientist13 May 13, 2024
3428472
add storybook static dirs config
thescientist13 May 13, 2024
63b5685
handle build conditions
thescientist13 May 13, 2024
e0e15f8
convert header icons to use local SVG files
thescientist13 May 13, 2024
4c2a37e
support raw transforms for WTR
thescientist13 May 13, 2024
883a5b8
Update header.css
Auhseh May 14, 2024
a0c23c7
Update header.js
Auhseh May 14, 2024
decc70e
Update header.css
Auhseh May 14, 2024
c9f0738
Update header.css
Auhseh May 14, 2024
ac1b314
Update header.js
Auhseh May 14, 2024
701cc71
Update header.js
Auhseh May 14, 2024
7018c9b
misc refactoring
thescientist13 May 17, 2024
69e8829
misc cleanup
thescientist13 May 17, 2024
620f6c3
add test cases for the header
thescientist13 May 17, 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
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const config = {
docs: {
autodocs: "tag",
},
staticDirs: ["../src"],
};

export default config;
15 changes: 14 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
import eslintConfigPrettier from "eslint-config-prettier";
import babelParser from "@babel/eslint-parser";

export default [
{
languageOptions: {
parser: babelParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
requireConfigFile: false,
babelOptions: {
plugins: ["@babel/plugin-syntax-import-assertions"],
},
},
globals: {
browser: true,
node: true,
},
},
ignores: [".greenwood/*", "node_modules/*", "public/*", "reports/*"],
ignores: [
".greenwood/*",
"node_modules/*",
"public/*",
"reports/*",
"storybook-static/**",
"patches/**",
],
rules: {
"comma-dangle": [2, "never"],
"no-cond-assign": 2,
Expand Down
3 changes: 3 additions & 0 deletions greenwood.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { greenwoodPluginImportRaw } from "@greenwood/plugin-import-raw";

export default {
prerender: true,
plugins: [greenwoodPluginImportRaw()],
};
122 changes: 122 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"clean": "rimraf public .greenwood storybook-static",
"build": "greenwood build",
"build": "node --loader ./node_modules/@greenwood/cli/src/loader.js ./node_modules/.bin/greenwood build",
"dev": "greenwood develop",
"serve": "npm run clean && npm run build && greenwood serve",
"story:dev": "storybook dev -p 6006",
Expand All @@ -38,9 +38,12 @@
"open-props": "^1.7.4"
},
"devDependencies": {
"@babel/eslint-parser": "^7.24.5",
"@babel/plugin-syntax-import-assertions": "^7.24.1",
"@chromatic-com/storybook": "^1.3.1",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@greenwood/cli": "^0.30.0-alpha.2",
"@greenwood/plugin-import-raw": "^0.30.0-alpha.2",
"@ls-lint/ls-lint": "^1.10.0",
"@storybook/addon-essentials": "^8.0.6",
"@storybook/addon-links": "^8.0.6",
Expand Down
14 changes: 14 additions & 0 deletions patches/wc-compiler+0.13.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/wc-compiler/src/dom-shim.js b/node_modules/wc-compiler/src/dom-shim.js
index be289a3..dd4692a 100644
--- a/node_modules/wc-compiler/src/dom-shim.js
+++ b/node_modules/wc-compiler/src/dom-shim.js
@@ -102,6 +102,9 @@ class ShadowRoot extends DocumentFragment {
super();
this.mode = options.mode || 'closed';
this.adoptedStyleSheets = [];
+ // TODO not sure if this is the right base class for these?
+ this.querySelector = noop;
+ this.querySelectorAll = noop;
}
}

23 changes: 12 additions & 11 deletions src/assets/tile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading