Skip to content

Commit

Permalink
add gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraVieira committed Feb 21, 2024
1 parent 1f80847 commit 9607742
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ module.exports = {
'import/no-cycle': 'off',
'no-multi-assign': 'off',
'react/react-in-jsx-scope': 'off',
// nextjs issue; need to update next
'jsx-a11y/anchor-is-valid': 'off',
"react/no-unknown-property": 0
},
settings: {},
plugins: ['import'],
Expand Down
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# By default, core team reviews all file changes
@queerjs/core
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn lint
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
Expand All @@ -16,4 +15,4 @@
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@next/bundle-analyzer": "^14.0.4",
"autoprefixer": "^10.4.16",
"babel-eslint": "^10.1.0",
Expand Down
18 changes: 9 additions & 9 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://market.pmnd.rs</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/add-asset</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/admin-dashboard</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/creator-dashboard</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/favorites</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/hdris</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/login</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/materials</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/request</loc><lastmod>2023-12-21T17:00:20.754Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs</loc><lastmod>2024-02-21T17:57:29.018Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/add-asset</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/admin-dashboard</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/creator-dashboard</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/favorites</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/hdris</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/login</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/materials</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://market.pmnd.rs/request</loc><lastmod>2024-02-21T17:57:29.019Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
5 changes: 3 additions & 2 deletions src/components/canvas/Editor/EditTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,19 @@ const EditTools = ({ materialsEditor, scene, setMaterialsEditor }) => {
return (
<RangeSlider
{...props}
key={i}
max={val.max}
min={val.min}
step={val.step}
/>
)
}
if (val.type === 'color') {
return <ColorPicker {...props} />
return <ColorPicker key={i} {...props} />
}

if (val.type === 'select') {
return <Select {...props} options={val.options} />
return <Select {...props} key={i} options={val.options} />
}

return null
Expand Down
27 changes: 26 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
dependencies:
"@babel/types" "^7.14.5"

"@babel/helper-annotate-as-pure@^7.22.5":
"@babel/helper-annotate-as-pure@^7.18.6", "@babel/helper-annotate-as-pure@^7.22.5":
version "7.22.5"
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882"
integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==
Expand Down Expand Up @@ -213,6 +213,21 @@
"@babel/helper-split-export-declaration" "^7.22.6"
semver "^6.3.1"

"@babel/helper-create-class-features-plugin@^7.21.0":
version "7.23.10"
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.10.tgz#25d55fafbaea31fd0e723820bb6cc3df72edf7ea"
integrity sha512-2XpP2XhkXzgxecPNEEK8Vz8Asj9aRxt08oKOqtiZoqV2UGZ5T+EkyP9sXQ9nwMxBIG34a7jmasVqoMop7VdPUw==
dependencies:
"@babel/helper-annotate-as-pure" "^7.22.5"
"@babel/helper-environment-visitor" "^7.22.20"
"@babel/helper-function-name" "^7.23.0"
"@babel/helper-member-expression-to-functions" "^7.23.0"
"@babel/helper-optimise-call-expression" "^7.22.5"
"@babel/helper-replace-supers" "^7.22.20"
"@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
"@babel/helper-split-export-declaration" "^7.22.6"
semver "^6.3.1"

"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.15", "@babel/helper-create-regexp-features-plugin@^7.22.5":
version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz#5ee90093914ea09639b01c711db0d6775e558be1"
Expand Down Expand Up @@ -589,6 +604,16 @@
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703"
integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==

"@babel/plugin-proposal-private-property-in-object@^7.21.11":
version "7.21.11"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz#69d597086b6760c4126525cfa154f34631ff272c"
integrity sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==
dependencies:
"@babel/helper-annotate-as-pure" "^7.18.6"
"@babel/helper-create-class-features-plugin" "^7.21.0"
"@babel/helper-plugin-utils" "^7.20.2"
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"

"@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
Expand Down

0 comments on commit 9607742

Please sign in to comment.