-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:adolfokrah/visio-cms-lib
- Loading branch information
Showing
79 changed files
with
1,089 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,44 +10,44 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Bump version | ||
id: bump_version | ||
run: | | ||
current_version=$(jq -r '.version' package.json) | ||
IFS='.' read -r -a version_parts <<< "$current_version" | ||
major=${version_parts[0]} | ||
minor=${version_parts[1]} | ||
patch=${version_parts[2]} | ||
new_patch=$((patch + 1)) | ||
new_version="$major.$minor.$new_patch" | ||
jq ".version = \"$new_version\"" package.json > package.tmp.json | ||
mv package.tmp.json package.json | ||
echo "New version: $new_version" | ||
echo "::set-output name=new_version::$new_version" | ||
- name: Commit updated version | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git add package.json | ||
git commit -m "Bump version to ${{ steps.bump_version.outputs.new_version }}" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Trigger Release components package workflow | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
event-type: create-tag-release | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Bump version | ||
id: bump_version | ||
run: | | ||
current_version=$(jq -r '.version' package.json) | ||
IFS='.' read -r -a version_parts <<< "$current_version" | ||
major=${version_parts[0]} | ||
minor=${version_parts[1]} | ||
patch=${version_parts[2]} | ||
new_patch=$((patch + 1)) | ||
new_version="$major.$minor.$new_patch" | ||
jq ".version = \"$new_version\"" package.json > package.tmp.json | ||
mv package.tmp.json package.json | ||
echo "New version: $new_version" | ||
echo "::set-output name=new_version::$new_version" | ||
- name: Commit updated version | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git add package.json | ||
git commit -m "Bump version to ${{ steps.bump_version.outputs.new_version }}" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Trigger Release components package workflow | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
event-type: create-tag-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Release components package | ||
|
||
on: | ||
repository_dispatch: | ||
repository_dispatch: | ||
types: [create-npm-package] | ||
|
||
jobs: | ||
|
@@ -10,10 +10,9 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Reconfigure git to use HTTP authentication | ||
run: | ||
git config --global url."https://github.com/".insteadOf | ||
run: git config --global url."https://github.com/".insteadOf | ||
ssh://[email protected]/ | ||
|
||
- name: Install Node.js | ||
|
@@ -25,7 +24,7 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build package | ||
run: npm run build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"bracketSpacing": true, | ||
"endOfLine": "lf" | ||
} | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"bracketSpacing": true, | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
npm install | ||
npm run build | ||
``` | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,11 @@ | ||
import { Cms } from './components'; | ||
import blocks from './components/blocks'; | ||
import './styles/tailwind.css'; | ||
import TestLivePage from './TestLivePage'; | ||
|
||
import visioConfig from '../visio.config'; | ||
function App() { | ||
const path = window.location.pathname; | ||
if (path.includes('cms')) { | ||
return ( | ||
<Cms | ||
path={path} | ||
allowImageTransformation={false} | ||
blocks={blocks} | ||
defaultLanguage={{ | ||
language: 'English', | ||
locale: 'en-us', | ||
}} | ||
supportedLanguages={[ | ||
{ | ||
language: 'English', | ||
locale: 'en-us', | ||
}, | ||
{ | ||
language: 'Spanish', | ||
locale: 'es', | ||
}, | ||
{ | ||
language: 'French', | ||
locale: 'fr', | ||
}, | ||
{ | ||
language: 'German', | ||
locale: 'de', | ||
}, | ||
{ | ||
language: 'Finish', | ||
locale: 'fi', | ||
}, | ||
]} | ||
emailSender="Visio cms <[email protected]>" | ||
projectId="urhvrfatpmdbwttotlwc" | ||
supabaseProjectUrl="https://urhvrfatpmdbwttotlwc.supabase.co" | ||
supabaseAnonKey="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVyaHZyZmF0cG1kYnd0dG90bHdjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjI0MTIyNDAsImV4cCI6MjAzNzk4ODI0MH0.6oTSoUtEAVdSxUa4ws9PgXEnHCiFCsgXTawwbtOBDh8" | ||
unsplashAccessKey="Rw6b_NBqAXZV4wTUOF7A2QtagLtB9apC2dQYZco1RUU" | ||
/> | ||
); | ||
return <Cms path={path} {...visioConfig} />; | ||
} | ||
return <TestLivePage />; | ||
} | ||
|
Oops, something went wrong.