Skip to content

Commit

Permalink
[add] Integrate page builder
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Dec 10, 2023
1 parent 06c73e5 commit d75ef3a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
sudo apt-get install -y g++-aarch64-linux-gnu crossbuild-essential-arm64
sudo apt-get install -y gcc-13-aarch64-linux-gnu
sudo apt-get install -y g++-13-aarch64-linux-gnu
sudo apt-get install -y wget
- name: Inspect Tools
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
steps:
- name: Install coscmd
run: |
sudo /Library/Frameworks/Python.framework/Versions/3.11/bin/python -m pip install --upgrade pip
sudo /Library/Frameworks/Python.framework/Versions/3.12/bin/python -m pip install --upgrade pip
sudo pip3 install coscmd
echo "/Library/Frameworks/Python.framework/Versions/3.11/bin" >> $GITHUB_PATH
echo "/Library/Frameworks/Python.framework/Versions/3.12/bin" >> $GITHUB_PATH
- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ artifacts-linux: clean
cd ../yao-init && rm -rf LICENSE
# cd ../yao-init rm -rf README.md

# Yao Builder
wget https://release-sv.yaoapps.com/archives/yao-builder-latest.tar.gz -O .tmp/yao-builder-latest.tar.gz
mkdir -p .tmp/data/builder
tar -zxvf .tmp/yao-builder-latest.tar.gz -C .tmp/data/builder
rm -rf .tmp/yao-builder-latest.tar.gz

# Packing
mkdir -p .tmp/data/xgen
cp -r ./ui .tmp/data/ui
Expand Down Expand Up @@ -205,6 +211,12 @@ artifacts-macos: clean
cd ../yao-init && rm -rf LICENSE
# cd ../yao-init && rm -rf README.md

# Yao Builder
wget https://release-sv.yaoapps.com/archives/yao-builder-latest.tar.gz -O .tmp/yao-builder-latest.tar.gz
mkdir -p .tmp/data/builder
tar -zxvf .tmp/yao-builder-latest.tar.gz -C .tmp/data/builder
rm -rf .tmp/yao-builder-latest.tar.gz

# Packing
mkdir -p .tmp/data/xgen
cp -r ./ui .tmp/data/ui
Expand Down Expand Up @@ -284,6 +296,12 @@ release: clean
rm -rf .tmp/yao-init/LICENSE
rm -rf .tmp/yao-init/README.md

# Yao Builder
wget https://release-sv.yaoapps.com/archives/yao-builder-latest.tar.gz -O .tmp/yao-builder-latest.tar.gz
mkdir -p .tmp/data/builder
tar -zxvf .tmp/yao-builder-latest.tar.gz -C .tmp/data/builder
rm -rf .tmp/yao-builder-latest.tar.gz

# Packing
mkdir -p .tmp/data/xgen
cp -r ./ui .tmp/data/ui
Expand Down Expand Up @@ -338,6 +356,12 @@ linux-release: clean
rm -rf .tmp/yao-init/LICENSE
rm -rf .tmp/yao-init/README.md

# Yao Builder
wget https://release-sv.yaoapps.com/archives/yao-builder-latest.tar.gz -O .tmp/yao-builder-latest.tar.gz
mkdir -p .tmp/data/builder
tar -zxvf .tmp/yao-builder-latest.tar.gz -C .tmp/data/builder
rm -rf .tmp/yao-builder-latest.tar.gz

# Packing
mkdir -p .tmp/data/xgen
cp -r ./ui .tmp/data/ui
Expand Down
6 changes: 5 additions & 1 deletion sui/api/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ func LocaleGet(process *process.Process) interface{} {
exception.New(err.Error(), 500).Throw()
}

return template.Locales()
locals := template.Locales()
if locals == nil {
return []core.SelectOption{}
}
return locals
}

// ThemeGet handle the find Template request
Expand Down

0 comments on commit d75ef3a

Please sign in to comment.