mirror of
https://github.com/goharbor/harbor
synced 2025-04-20 16:41:27 +00:00

1. Add group management 2. Add rewrite import user to member ui 3. Add import group to member 4. Add new items in configuration page
47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
cd /harbor_src/ui_ng
|
|
rm -rf dist/*
|
|
|
|
npm_proxy=
|
|
|
|
while getopts p: option
|
|
do
|
|
case "${option}"
|
|
in
|
|
p) npm_proxy=${OPTARG};;
|
|
esac
|
|
done
|
|
|
|
if [ ! -z "$npm_proxy" -a "$npm_proxy" != " " ]; then
|
|
npm config set proxy $npm_proxy
|
|
fi
|
|
|
|
#Check if node_modules directory existing
|
|
if [ ! -d "./node_modules" ]; then
|
|
mv /harbor_resources/node_modules ./
|
|
fi
|
|
|
|
cat ./package.json
|
|
npm install
|
|
|
|
./node_modules/.bin/ngc -p tsconfig-aot.json
|
|
sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
|
./node_modules/.bin/rollup -c rollup-config.js
|
|
|
|
#Copy built js to the static folder
|
|
cp ./dist/build.min.js ../ui/static/
|
|
|
|
cp -r ./src/i18n/ ../ui/static/
|
|
cp ./src/styles.css ../ui/static/
|
|
cp -r ./src/images/ ../ui/static/
|
|
cp ./src/setting.json ../ui/static/
|
|
|
|
cp ./node_modules/clarity-icons/clarity-icons.min.css ../ui/static/
|
|
cp ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js ../ui/static/
|
|
cp ./node_modules/@webcomponents/custom-elements/custom-elements.min.js ../ui/static/
|
|
cp ./node_modules/clarity-icons/clarity-icons.min.js ../ui/static/
|
|
cp ./node_modules/clarity-ui/clarity-ui.min.css ../ui/static/
|
|
cp -r ./node_modules/clarity-icons/shapes/ ../ui/static/
|