@openstack_dev/gatsby-theme-marketing-oif-core 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openstack_dev/gatsby-theme-marketing-oif-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Base theme for Marketing Sites",
|
|
5
5
|
"author": "smarcet",
|
|
6
6
|
"keywords": [
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
"eslint-plugin-only-warn": "^1.1.0",
|
|
148
148
|
"eslint-plugin-react": "^7.28.0",
|
|
149
149
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
150
|
-
"lint-staged": "^15.1.0",
|
|
151
150
|
"husky": "^9.0.11",
|
|
151
|
+
"lint-staged": "^15.1.0",
|
|
152
152
|
"prettier": "^2.0.5"
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -293,10 +293,14 @@ function Navbar({ isLoggedUser, member }) {
|
|
|
293
293
|
</Toolbar>
|
|
294
294
|
<Box
|
|
295
295
|
className={`${styles.openstackSearchBarMobile} openstack-search-bar ossw-mobile`}
|
|
296
|
-
|
|
297
|
-
visibility:
|
|
298
|
-
|
|
299
|
-
|
|
296
|
+
sx={{
|
|
297
|
+
visibility: {
|
|
298
|
+
xs: isMobileMenuOpen ? "visible" : "hidden",
|
|
299
|
+
md: "hidden",
|
|
300
|
+
},
|
|
301
|
+
opacity: { xs: isMobileMenuOpen ? "1" : "0", md: "0" },
|
|
302
|
+
height: { xs: isMobileMenuOpen ? "auto" : 0, md: 0 },
|
|
303
|
+
color: "#8a959e",
|
|
300
304
|
}}
|
|
301
305
|
data-baseurl={getEnvVariable(SEARCH_WIDGET_BASE_URL)}
|
|
302
306
|
data-context="www-openstack"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "staticJsonFilesBuildTime": [], "lastBuild":
|
|
1
|
+
{ "staticJsonFilesBuildTime": [], "lastBuild": 1713448346008 }
|
package/.eslintrc.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"extends": ["plugin:react/recommended", "airbnb"],
|
|
7
|
-
"parserOptions": {
|
|
8
|
-
"ecmaFeatures": {
|
|
9
|
-
"jsx": true
|
|
10
|
-
},
|
|
11
|
-
"ecmaVersion": 12,
|
|
12
|
-
"sourceType": "module"
|
|
13
|
-
},
|
|
14
|
-
"plugins": ["react"],
|
|
15
|
-
"rules": {
|
|
16
|
-
"quotes": ["error", "double"],
|
|
17
|
-
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
|
|
18
|
-
"import/no-extraneous-dependencies": "warn",
|
|
19
|
-
"react/no-unused-class-component-methods": "warn",
|
|
20
|
-
"class-methods-use-this": "warn",
|
|
21
|
-
"import/no-unresolved": "warn",
|
|
22
|
-
"no-underscore-dangle": "warn",
|
|
23
|
-
"camelcase": "warn",
|
|
24
|
-
"react/forbid-prop-types": "warn",
|
|
25
|
-
"no-magic-numbers": ["error", { "ignoreArrayIndexes": true, "ignore": [0] }]
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
name: es-lint
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
jobs:
|
|
5
|
-
build:
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
steps:
|
|
8
|
-
- uses: actions/checkout@v3
|
|
9
|
-
with:
|
|
10
|
-
fetch-depth: 0
|
|
11
|
-
- uses: actions/setup-node@v3
|
|
12
|
-
with:
|
|
13
|
-
node-version: 18
|
|
14
|
-
- run: yarn install
|
|
15
|
-
- run: npx lint-staged --diff=origin/main --verbose
|
package/.husky/pre-commit
DELETED
package/src/pages/404.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { Link } from "gatsby"
|
|
3
|
-
|
|
4
|
-
const pageStyles = {
|
|
5
|
-
color: "#232129",
|
|
6
|
-
padding: "96px",
|
|
7
|
-
fontFamily: "-apple-system, Roboto, sans-serif, serif",
|
|
8
|
-
}
|
|
9
|
-
const headingStyles = {
|
|
10
|
-
marginTop: 0,
|
|
11
|
-
marginBottom: 64,
|
|
12
|
-
maxWidth: 320,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const paragraphStyles = {
|
|
16
|
-
marginBottom: 48,
|
|
17
|
-
}
|
|
18
|
-
const codeStyles = {
|
|
19
|
-
color: "#8A6534",
|
|
20
|
-
padding: 4,
|
|
21
|
-
backgroundColor: "#FFF4DB",
|
|
22
|
-
fontSize: "1.25rem",
|
|
23
|
-
borderRadius: 4,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const NotFoundPage = () => {
|
|
27
|
-
return (
|
|
28
|
-
<main style={pageStyles}>
|
|
29
|
-
<h1 style={headingStyles}>Page not found</h1>
|
|
30
|
-
<p style={paragraphStyles}>
|
|
31
|
-
Sorry 😔, we couldn’t find what you were looking for.
|
|
32
|
-
<br />
|
|
33
|
-
{process.env.NODE_ENV === "development" ? (
|
|
34
|
-
<>
|
|
35
|
-
<br />
|
|
36
|
-
Try creating a page in <code style={codeStyles}>src/pages/</code>.
|
|
37
|
-
<br />
|
|
38
|
-
</>
|
|
39
|
-
) : null}
|
|
40
|
-
<br />
|
|
41
|
-
<Link to="/">Go home</Link>.
|
|
42
|
-
</p>
|
|
43
|
-
</main>
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default NotFoundPage
|
|
48
|
-
|
|
49
|
-
export const Head = () => <title>Not found</title>
|