create-swdg-frontend 0.1.6 → 0.2.0
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/README.md +31 -13
- package/bin/index.js +3 -244
- package/lib/argv.js +43 -0
- package/lib/cli.js +141 -0
- package/lib/constants.js +24 -0
- package/lib/gis.js +92 -0
- package/lib/manifest.js +23 -0
- package/lib/prompts.js +55 -0
- package/lib/scaffold.js +118 -0
- package/package.json +6 -2
- package/scripts/sync-template.js +120 -0
- package/scripts/validate-template.mjs +74 -0
- package/stubs/tsconfig.node.json +11 -0
- package/stubs/types-env.d.ts +9 -0
- package/stubs/vite.config.ts +64 -0
- package/template/.env.example +6 -0
- package/template/.github/workflows/ci.yml +23 -0
- package/template/.github/workflows/release.yml +69 -0
- package/template/.husky/commit-msg +42 -42
- package/template/.husky/pre-commit +2 -2
- package/template/.husky/prepare-commit-msg +0 -0
- package/template/.lintstagedrc +5 -5
- package/template/.prettierignore +26 -26
- package/template/.prettierrc.cjs +10 -10
- package/template/.stylelintignore +1 -1
- package/template/.stylelintrc.json +12 -6
- package/template/README.md +99 -36
- package/template/auto-imports.d.ts +10 -0
- package/template/commitlint.config.cjs +64 -64
- package/template/docs/MAINTAINER.md +77 -0
- package/template/docs/ONBOARDING.md +284 -0
- package/template/docs/TESTING.md +104 -0
- package/template/eslint.config.js +97 -96
- package/template/index.html +17 -17
- package/template/interface/user.ts +5 -5
- package/template/package.json +88 -86
- package/template/pnpm-lock.yaml +6360 -0
- package/template/postcss.config.js +5 -0
- package/template/scripts/gen-api.cjs +280 -230
- package/template/scripts/release.mjs +53 -59
- package/template/scripts/set-release-version.mjs +46 -0
- package/template/scripts/test-pipeline.mjs +85 -0
- package/template/scripts/test-scaffold.mjs +197 -0
- package/template/scripts/test-template.mjs +52 -0
- package/template/scripts/verify.mjs +28 -0
- package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
- package/template/src/App.vue +6 -6
- package/template/src/api/README.md +7 -3
- package/template/src/assets/favicon.svg +49 -49
- package/template/src/components/Body/index.vue +80 -16
- package/template/src/components/CesiumViewer/index.vue +36 -0
- package/template/src/components/Header/index.vue +19 -8
- package/template/src/components/OnboardingDeck/index.vue +449 -0
- package/template/src/data/onboardingSlides.ts +208 -0
- package/template/src/directive/focus.ts +9 -9
- package/template/src/layout/BasicLayout.vue +28 -28
- package/template/src/main.ts +25 -33
- package/template/src/router/index.ts +30 -24
- package/template/src/router/routeUtils.ts +13 -0
- package/template/src/stores/README.md +3 -3
- package/template/src/stores/useCounter.ts +12 -12
- package/template/src/styles/alerts.less +85 -85
- package/template/src/styles/global.css +326 -326
- package/template/src/styles/shell.css +232 -0
- package/template/src/utils/alert.ts +58 -58
- package/template/src/utils/axios-middleware.js +180 -0
- package/template/src/utils/cesium/index.ts +71 -0
- package/template/src/utils/components.ts +21 -21
- package/template/src/utils/composables/useAlert.ts +14 -14
- package/template/src/utils/composables/useFeatureGis.ts +24 -0
- package/template/src/utils/http.ts +5 -0
- package/template/src/views/examples/cesium/index.vue +85 -0
- package/template/src/views/examples/guide/index.vue +42 -0
- package/template/src/views/examples/test/index.vue +63 -0
- package/template/src/views/index.vue +8 -9
- package/template/src/vite-env.d.ts +1 -1
- package/template/tests/README.md +7 -6
- package/template/tests/e2e/README.md +3 -3
- package/template/tests/setup.ts +1 -1
- package/template/tests/unit/onboardingSlides.test.ts +20 -0
- package/template/tests/unit/router.utils.test.ts +21 -0
- package/template/tests/unit/scaffold.lib.test.ts +44 -0
- package/template/tests/unit/useFeatureGis.test.ts +14 -0
- package/template/tests/utils/helpers.ts +1 -1
- package/template/tsconfig.json +51 -51
- package/template/tsconfig.node.json +11 -11
- package/template/types/README.md +3 -3
- package/template/types/env.d.ts +13 -0
- package/template/types/global.d.ts +9 -9
- package/template/vite.config.ts +89 -75
- package/template/vitest.config.ts +22 -9
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
- package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/pin.svg +0 -1
- package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +0 -10924
- package/template/public/Cesium1.119/Cesium.js +0 -185772
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
- package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +0 -11424
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +0 -94
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
- package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
- package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
- package/template/public/Cesium1.119/Widgets/shared.css +0 -103
- package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
- package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
- package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
- package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
- package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
- package/template/public/Cesium1.119/index.cjs +0 -185632
- package/template/public/Cesium1.119/index.js +0 -182874
- package/template/src/views/Test/index.vue +0 -23
- package/template/tests/unit/example.test.ts +0 -7
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 将 create-swdg / swdg / SCAFFOLD_VERSION 对齐到同一 semver。
|
|
4
|
+
* 供本地 release 与 CI tag 发布共用。
|
|
5
|
+
*/
|
|
6
|
+
import fs from 'node:fs';
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
|
|
10
|
+
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
11
|
+
const createPkgPath = path.join(rootDir, 'create-swdg/package.json');
|
|
12
|
+
const swdgPkgPath = path.join(rootDir, 'swdg/package.json');
|
|
13
|
+
const constantsPath = path.join(rootDir, 'create-swdg/lib/constants.js');
|
|
14
|
+
|
|
15
|
+
const version = process.argv[2];
|
|
16
|
+
if (!version || !/^\d+\.\d+\.\d+$/.test(version)) {
|
|
17
|
+
console.error('Usage: node scripts/set-release-version.mjs <x.y.z>');
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const readJson = (filePath) => JSON.parse(fs.readFileSync(filePath, 'utf8'));
|
|
22
|
+
const writeJson = (filePath, data) =>
|
|
23
|
+
fs.writeFileSync(filePath, JSON.stringify(data, null, 2) + '\n', 'utf8');
|
|
24
|
+
|
|
25
|
+
const createPkg = readJson(createPkgPath);
|
|
26
|
+
const swdgPkg = readJson(swdgPkgPath);
|
|
27
|
+
|
|
28
|
+
createPkg.version = version;
|
|
29
|
+
swdgPkg.version = version;
|
|
30
|
+
swdgPkg.dependencies = swdgPkg.dependencies || {};
|
|
31
|
+
swdgPkg.dependencies['create-swdg-frontend'] = `^${version}`;
|
|
32
|
+
|
|
33
|
+
writeJson(createPkgPath, createPkg);
|
|
34
|
+
writeJson(swdgPkgPath, swdgPkg);
|
|
35
|
+
|
|
36
|
+
let constants = fs.readFileSync(constantsPath, 'utf8');
|
|
37
|
+
constants = constants.replace(
|
|
38
|
+
/export const SCAFFOLD_VERSION = '[^']+';/,
|
|
39
|
+
`export const SCAFFOLD_VERSION = '${version}';`
|
|
40
|
+
);
|
|
41
|
+
fs.writeFileSync(constantsPath, constants, 'utf8');
|
|
42
|
+
|
|
43
|
+
console.log(`✓ Release version set to ${version}`);
|
|
44
|
+
console.log(' - create-swdg/package.json');
|
|
45
|
+
console.log(' - swdg/package.json');
|
|
46
|
+
console.log(' - create-swdg/lib/constants.js');
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 发布前统一测试管道(本地 CI / npm release 门禁)。
|
|
4
|
+
*
|
|
5
|
+
* 顺序固定,任一阶段失败即 exit(1):
|
|
6
|
+
* 0. sync — 生成 create-swdg/template(CI 全新 clone 必需)
|
|
7
|
+
* 1. verify — typecheck + eslint
|
|
8
|
+
* 2. unit — vitest
|
|
9
|
+
* 3. scaffold — 脚手架集成(无 install)
|
|
10
|
+
* 4. template — template install/typecheck/build
|
|
11
|
+
*/
|
|
12
|
+
import { spawn } from 'node:child_process';
|
|
13
|
+
import path from 'node:path';
|
|
14
|
+
import { fileURLToPath } from 'node:url';
|
|
15
|
+
|
|
16
|
+
const rootDir = path.resolve(
|
|
17
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
18
|
+
'..'
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const syncScript = path.join(rootDir, 'create-swdg/scripts/sync-template.js');
|
|
22
|
+
|
|
23
|
+
const stages = [
|
|
24
|
+
{
|
|
25
|
+
name: 'sync',
|
|
26
|
+
cmd: process.execPath,
|
|
27
|
+
args: [syncScript],
|
|
28
|
+
env: { ...process.env, TEMPLATE_DIR: rootDir },
|
|
29
|
+
},
|
|
30
|
+
{ name: 'verify', cmd: process.execPath, args: ['scripts/verify.mjs'] },
|
|
31
|
+
{ name: 'unit', cmd: 'pnpm', args: ['run', 'test:unit'] },
|
|
32
|
+
{
|
|
33
|
+
name: 'scaffold',
|
|
34
|
+
cmd: process.execPath,
|
|
35
|
+
args: ['scripts/test-scaffold.mjs'],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'template',
|
|
39
|
+
cmd: process.execPath,
|
|
40
|
+
args: ['scripts/test-template.mjs'],
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
function runStage(stage) {
|
|
45
|
+
return new Promise((resolve, reject) => {
|
|
46
|
+
console.log(
|
|
47
|
+
`\n${'='.repeat(60)}\n▶ stage: ${stage.name}\n${'='.repeat(60)}\n`
|
|
48
|
+
);
|
|
49
|
+
const started = Date.now();
|
|
50
|
+
const child = spawn(stage.cmd, stage.args, {
|
|
51
|
+
cwd: rootDir,
|
|
52
|
+
stdio: 'inherit',
|
|
53
|
+
shell: stage.cmd === 'pnpm',
|
|
54
|
+
env: stage.env ?? process.env,
|
|
55
|
+
});
|
|
56
|
+
child.on('exit', (code) => {
|
|
57
|
+
const sec = ((Date.now() - started) / 1000).toFixed(1);
|
|
58
|
+
if (code === 0) {
|
|
59
|
+
console.log(`\n✓ stage "${stage.name}" passed (${sec}s)\n`);
|
|
60
|
+
resolve();
|
|
61
|
+
} else {
|
|
62
|
+
reject(new Error(`stage "${stage.name}" failed (exit ${code})`));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function main() {
|
|
69
|
+
console.log('\nSWDG release test pipeline\n');
|
|
70
|
+
const pipelineStarted = Date.now();
|
|
71
|
+
|
|
72
|
+
for (const stage of stages) {
|
|
73
|
+
await runStage(stage);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const totalSec = ((Date.now() - pipelineStarted) / 1000).toFixed(1);
|
|
77
|
+
console.log(`${'='.repeat(60)}`);
|
|
78
|
+
console.log(`✓ ALL STAGES PASSED (${totalSec}s)`);
|
|
79
|
+
console.log(`${'='.repeat(60)}\n`);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
main().catch((err) => {
|
|
83
|
+
console.error(`\n✗ PIPELINE FAILED: ${err.message}\n`);
|
|
84
|
+
process.exit(1);
|
|
85
|
+
});
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 脚手架集成测试:无 GIS / 有 GIS 产物结构、manifest、CLI 参数解析。
|
|
4
|
+
* 不执行 pnpm install(快速、可重复)。
|
|
5
|
+
*/
|
|
6
|
+
import fs from 'node:fs/promises';
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import os from 'node:os';
|
|
9
|
+
import { spawn } from 'node:child_process';
|
|
10
|
+
import { fileURLToPath } from 'node:url';
|
|
11
|
+
import { createProject, pathExists } from '../create-swdg/lib/scaffold.js';
|
|
12
|
+
import { SCAFFOLD_VERSION } from '../create-swdg/lib/constants.js';
|
|
13
|
+
|
|
14
|
+
const rootDir = path.resolve(
|
|
15
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
16
|
+
'..'
|
|
17
|
+
);
|
|
18
|
+
const cliBin = path.join(rootDir, 'create-swdg/bin/index.js');
|
|
19
|
+
const tmpBase = path.join(os.tmpdir(), 'swdg-scaffold-test');
|
|
20
|
+
|
|
21
|
+
let passed = 0;
|
|
22
|
+
let failed = 0;
|
|
23
|
+
|
|
24
|
+
function pass(name) {
|
|
25
|
+
passed += 1;
|
|
26
|
+
console.log(` ✓ ${name}`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function fail(name, err) {
|
|
30
|
+
failed += 1;
|
|
31
|
+
console.error(` ✗ ${name}`);
|
|
32
|
+
console.error(` ${err?.message ?? err}`);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async function readJson(filePath) {
|
|
36
|
+
return JSON.parse(await fs.readFile(filePath, 'utf8'));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async function assertNoGisProject(dir) {
|
|
40
|
+
const pkg = await readJson(path.join(dir, 'package.json'));
|
|
41
|
+
if (pkg.dependencies?.cesium) {
|
|
42
|
+
throw new Error('dependencies.cesium should be removed');
|
|
43
|
+
}
|
|
44
|
+
if (pkg.devDependencies?.['vite-plugin-static-copy']) {
|
|
45
|
+
throw new Error('vite-plugin-static-copy should be removed');
|
|
46
|
+
}
|
|
47
|
+
const paths = [
|
|
48
|
+
'scripts/vite-plugin-cesium-dev.ts',
|
|
49
|
+
'src/utils/cesium',
|
|
50
|
+
'src/components/CesiumViewer',
|
|
51
|
+
'src/views/examples/cesium',
|
|
52
|
+
];
|
|
53
|
+
for (const rel of paths) {
|
|
54
|
+
if (await pathExists(path.join(dir, rel))) {
|
|
55
|
+
throw new Error(`should not exist: ${rel}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const envExample = await fs.readFile(path.join(dir, '.env.example'), 'utf8');
|
|
59
|
+
if (envExample.includes('VITE_FEATURE_GIS=true')) {
|
|
60
|
+
throw new Error('.env.example should not contain VITE_FEATURE_GIS=true');
|
|
61
|
+
}
|
|
62
|
+
const manifest = await readJson(path.join(dir, '.swdg/manifest.json'));
|
|
63
|
+
if (manifest.features.gis !== false) {
|
|
64
|
+
throw new Error('manifest.features.gis should be false');
|
|
65
|
+
}
|
|
66
|
+
if (manifest.generatorVersion !== SCAFFOLD_VERSION) {
|
|
67
|
+
throw new Error(`manifest version mismatch: ${manifest.generatorVersion}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async function assertGisProject(dir) {
|
|
72
|
+
const pkg = await readJson(path.join(dir, 'package.json'));
|
|
73
|
+
if (!pkg.dependencies?.cesium) {
|
|
74
|
+
throw new Error('dependencies.cesium should exist');
|
|
75
|
+
}
|
|
76
|
+
if (
|
|
77
|
+
!(await pathExists(path.join(dir, 'src/views/examples/cesium/index.vue')))
|
|
78
|
+
) {
|
|
79
|
+
throw new Error('cesium example page missing');
|
|
80
|
+
}
|
|
81
|
+
const envExample = await fs.readFile(path.join(dir, '.env.example'), 'utf8');
|
|
82
|
+
if (!envExample.includes('VITE_FEATURE_GIS=true')) {
|
|
83
|
+
throw new Error('.env.example should contain VITE_FEATURE_GIS=true');
|
|
84
|
+
}
|
|
85
|
+
const manifest = await readJson(path.join(dir, '.swdg/manifest.json'));
|
|
86
|
+
if (manifest.features.gis !== true) {
|
|
87
|
+
throw new Error('manifest.features.gis should be true');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function runCli(cwd, args) {
|
|
92
|
+
return new Promise((resolve, reject) => {
|
|
93
|
+
const child = spawn(process.execPath, [cliBin, ...args], {
|
|
94
|
+
cwd,
|
|
95
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
96
|
+
});
|
|
97
|
+
let stdout = '';
|
|
98
|
+
let stderr = '';
|
|
99
|
+
child.stdout.on('data', (d) => {
|
|
100
|
+
stdout += d;
|
|
101
|
+
});
|
|
102
|
+
child.stderr.on('data', (d) => {
|
|
103
|
+
stderr += d;
|
|
104
|
+
});
|
|
105
|
+
child.on('exit', (code) => {
|
|
106
|
+
resolve({ code, stdout, stderr });
|
|
107
|
+
});
|
|
108
|
+
child.on('error', reject);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
async function rmDir(dir) {
|
|
113
|
+
await fs.rm(dir, { recursive: true, force: true });
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
async function runCase(name, fn) {
|
|
117
|
+
try {
|
|
118
|
+
await fn();
|
|
119
|
+
pass(name);
|
|
120
|
+
} catch (err) {
|
|
121
|
+
fail(name, err);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async function main() {
|
|
126
|
+
console.log('\n▶ test:scaffold\n');
|
|
127
|
+
await fs.mkdir(tmpBase, { recursive: true });
|
|
128
|
+
|
|
129
|
+
const noGisDir = path.join(tmpBase, 'proj-no-gis');
|
|
130
|
+
const gisDir = path.join(tmpBase, 'proj-gis');
|
|
131
|
+
const cliDir = path.join(tmpBase, 'cli-run');
|
|
132
|
+
|
|
133
|
+
await runCase('programmatic scaffold --no-gis', async () => {
|
|
134
|
+
await rmDir(noGisDir);
|
|
135
|
+
await createProject(noGisDir, {
|
|
136
|
+
projectName: 'proj-no-gis',
|
|
137
|
+
gis: false,
|
|
138
|
+
});
|
|
139
|
+
const pkg = await readJson(path.join(noGisDir, 'package.json'));
|
|
140
|
+
if (pkg.name !== 'proj-no-gis') {
|
|
141
|
+
throw new Error(`package name should be proj-no-gis, got ${pkg.name}`);
|
|
142
|
+
}
|
|
143
|
+
await assertNoGisProject(noGisDir);
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
await runCase('programmatic scaffold --gis', async () => {
|
|
147
|
+
await rmDir(gisDir);
|
|
148
|
+
await createProject(gisDir, {
|
|
149
|
+
projectName: 'proj-gis',
|
|
150
|
+
gis: true,
|
|
151
|
+
});
|
|
152
|
+
await assertGisProject(gisDir);
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
await runCase('CLI end-to-end --no-gis --no-install', async () => {
|
|
156
|
+
await rmDir(cliDir);
|
|
157
|
+
await fs.mkdir(cliDir, { recursive: true });
|
|
158
|
+
const { code } = await runCli(cliDir, [
|
|
159
|
+
'cli-smoke-app',
|
|
160
|
+
'--no-gis',
|
|
161
|
+
'--no-install',
|
|
162
|
+
'--no-git',
|
|
163
|
+
'--no-verify',
|
|
164
|
+
]);
|
|
165
|
+
if (code !== 0) {
|
|
166
|
+
throw new Error(`CLI exited with ${code}`);
|
|
167
|
+
}
|
|
168
|
+
const outDir = path.join(cliDir, 'cli-smoke-app');
|
|
169
|
+
await assertNoGisProject(outDir);
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
await runCase('CLI rejects invalid project name', async () => {
|
|
173
|
+
await rmDir(cliDir);
|
|
174
|
+
await fs.mkdir(cliDir, { recursive: true });
|
|
175
|
+
const { code } = await runCli(cliDir, [
|
|
176
|
+
'Invalid_Name',
|
|
177
|
+
'--no-install',
|
|
178
|
+
'--no-git',
|
|
179
|
+
'--no-verify',
|
|
180
|
+
]);
|
|
181
|
+
if (code === 0) {
|
|
182
|
+
throw new Error('CLI should fail for invalid project name');
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
await rmDir(tmpBase);
|
|
187
|
+
|
|
188
|
+
console.log(`\n scaffold: ${passed} passed, ${failed} failed\n`);
|
|
189
|
+
if (failed > 0) {
|
|
190
|
+
process.exit(1);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
main().catch((err) => {
|
|
195
|
+
console.error(err);
|
|
196
|
+
process.exit(1);
|
|
197
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 模板包质量门禁:sync 后的 create-swdg/template 必须能 install / typecheck / build。
|
|
4
|
+
*/
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { spawn } from 'node:child_process';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
|
|
9
|
+
const rootDir = path.resolve(
|
|
10
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
11
|
+
'..'
|
|
12
|
+
);
|
|
13
|
+
const syncScript = path.join(rootDir, 'create-swdg/scripts/sync-template.js');
|
|
14
|
+
const validateScript = path.join(
|
|
15
|
+
rootDir,
|
|
16
|
+
'create-swdg/scripts/validate-template.mjs'
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
function run(cmd, args, cwd, env = process.env) {
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
|
+
const child = spawn(cmd, args, {
|
|
22
|
+
cwd,
|
|
23
|
+
stdio: 'inherit',
|
|
24
|
+
shell: true,
|
|
25
|
+
env,
|
|
26
|
+
});
|
|
27
|
+
child.on('exit', (code) => {
|
|
28
|
+
if (code === 0) resolve();
|
|
29
|
+
else reject(new Error(`${cmd} ${args.join(' ')} exited ${code}`));
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async function main() {
|
|
35
|
+
console.log('\n▶ test:template\n');
|
|
36
|
+
|
|
37
|
+
console.log(' · sync-template');
|
|
38
|
+
await run(process.execPath, [syncScript], rootDir, {
|
|
39
|
+
...process.env,
|
|
40
|
+
TEMPLATE_DIR: rootDir,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
console.log(' · validate-template');
|
|
44
|
+
await run(process.execPath, [validateScript], rootDir);
|
|
45
|
+
|
|
46
|
+
console.log('\n✓ test:template passed\n');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
main().catch((err) => {
|
|
50
|
+
console.error(`\n✗ test:template failed: ${err.message}\n`);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from 'node:child_process';
|
|
3
|
+
|
|
4
|
+
const steps = [
|
|
5
|
+
['typecheck', ['run', 'typecheck']],
|
|
6
|
+
['lint', ['run', 'lint']],
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
function run(cmd, args) {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
const child = spawn(cmd, args, { stdio: 'inherit', shell: true });
|
|
12
|
+
child.on('exit', (code) => {
|
|
13
|
+
if (code === 0) resolve();
|
|
14
|
+
else reject(new Error(`${cmd} ${args.join(' ')} failed`));
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
for (const [name, args] of steps) {
|
|
21
|
+
console.log(`\n▶ verify: ${name}\n`);
|
|
22
|
+
await run('pnpm', args);
|
|
23
|
+
}
|
|
24
|
+
console.log('\n✓ verify passed\n');
|
|
25
|
+
} catch (err) {
|
|
26
|
+
console.error(`\n✗ ${err.message}\n`);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import type { Plugin } from 'vite';
|
|
4
|
+
|
|
5
|
+
const cesiumRoot = path.resolve(
|
|
6
|
+
process.cwd(),
|
|
7
|
+
'node_modules/cesium/Build/Cesium'
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
const MIME: Record<string, string> = {
|
|
11
|
+
'.js': 'application/javascript',
|
|
12
|
+
'.mjs': 'application/javascript',
|
|
13
|
+
'.json': 'application/json',
|
|
14
|
+
'.wasm': 'application/wasm',
|
|
15
|
+
'.css': 'text/css',
|
|
16
|
+
'.svg': 'image/svg+xml',
|
|
17
|
+
'.png': 'image/png',
|
|
18
|
+
'.jpg': 'image/jpeg',
|
|
19
|
+
'.jpeg': 'image/jpeg',
|
|
20
|
+
'.xml': 'application/xml',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** 开发环境从 node_modules 提供 Cesium Workers/Assets,避免请求落到 SPA 返回 HTML */
|
|
24
|
+
export function cesiumDevAssets(mountPath = '/cesium'): Plugin {
|
|
25
|
+
return {
|
|
26
|
+
name: 'cesium-dev-assets',
|
|
27
|
+
apply: 'serve',
|
|
28
|
+
configureServer(server) {
|
|
29
|
+
server.middlewares.use(mountPath, (req, res, next) => {
|
|
30
|
+
const rawUrl = req.url ?? '';
|
|
31
|
+
const pathname = decodeURIComponent(rawUrl.split('?')[0]);
|
|
32
|
+
const relative = pathname.replace(/^\/+/, '');
|
|
33
|
+
if (!relative) {
|
|
34
|
+
next();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const filePath = path.join(cesiumRoot, relative);
|
|
39
|
+
if (!filePath.startsWith(cesiumRoot)) {
|
|
40
|
+
res.statusCode = 403;
|
|
41
|
+
res.end();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (!fs.existsSync(filePath) || fs.statSync(filePath).isDirectory()) {
|
|
46
|
+
next();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const ext = path.extname(filePath);
|
|
51
|
+
res.setHeader('Content-Type', MIME[ext] ?? 'application/octet-stream');
|
|
52
|
+
fs.createReadStream(filePath).pipe(res);
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
package/template/src/App.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<router-view />
|
|
3
|
-
</template>
|
|
4
|
-
<script setup lang="ts"></script>
|
|
5
|
-
|
|
6
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<router-view />
|
|
3
|
+
</template>
|
|
4
|
+
<script setup lang="ts"></script>
|
|
5
|
+
|
|
6
|
+
<style scoped></style>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="344 397 200 200" style="enable-background:new 344 397 200 200;" xml:space="preserve">
|
|
5
|
-
<style type="text/css">
|
|
6
|
-
.st0{fill:#0A6CAF;}
|
|
7
|
-
.st1{fill:#4DB276;}
|
|
8
|
-
</style>
|
|
9
|
-
<g>
|
|
10
|
-
<g id="XMLID_421_">
|
|
11
|
-
<g id="XMLID_553_">
|
|
12
|
-
<path id="XMLID_555_" class="st0" d="M444.8,490c0-0.1,0-0.1,0-0.2c-0.1-0.1,0-0.2-0.2-0.3C444.7,489.5,444.7,489.6,444.8,490
|
|
13
|
-
C444.8,489.9,444.8,489.9,444.8,490z M388.1,461.7c0,0.1-0.1,0.2-0.3,0.4c-7.7,20.8-13.9,42-16.6,64.2c-3.9-3-7.1-6.5-10.2-10.2
|
|
14
|
-
c-5.7-6.9-10.1-14.8-13.9-23c-1-2.1-0.4-4.1-0.2-6.2c1.1-10.5,3.8-20.5,8.1-30.1c5.7-12.7,13.9-23.7,24.3-32.9
|
|
15
|
-
c4.2-3.7,9.3-4.5,14.7-3.8c8.8,1.2,17.2,3.6,25.1,7.7c8.4,4.4,15.1,10.7,20.9,18.2c10.1,12.8,17.1,27,22.1,42.3
|
|
16
|
-
c2.7,8.6,7.4,16.1,14,22.3c6.9,6.4,15.3,9.6,24.7,10.6c7.3,0.8,14.4,0.3,21.2-2.5c7.7-3,13.9-8.1,18.6-14.8
|
|
17
|
-
c0.2-0.3,0.4-0.5,0.9-1.2c-0.1,3.5-0.5,6.6-1,9.6c-2.9,18.1-10.4,34.2-22.2,48.2c-4.1,4.9-8.8,9.2-13.8,13.2c-1,0.8-1.8,1-3,0.4
|
|
18
|
-
c-5.5-2.3-10.4-5.6-14.8-9.5c-10.6-9.4-18.3-21.1-24.8-33.6c-6.6-12.7-11.7-26-16.1-39.6c-0.1-0.4-0.3-0.8-0.4-1.2
|
|
19
|
-
c-0.2-0.1-0.3-0.3-0.3-0.6c0,0.4-0.1,0.9,0.1,1.3c1,7.1,2.3,14.3,3.8,21.3c1.9,9,4.5,17.8,7.5,26.4c0.2,0.6,0.2,1-0.6,1.1
|
|
20
|
-
c-6.8,1.4-13.8,2.5-20.7,3c-3,0.2-6,0.3-9,0.5c-1,0.1-1.5-0.3-1.7-1.2c-2.9-10.6-4.9-21.4-6-32.5c-0.9-9-1-18-0.8-27
|
|
21
|
-
c0.1-5.3,0.5-10.6,0.9-15.8c0-0.8,0.1-1.4,0.1-1.9c-0.2,0.3,0,1.1-0.4,1.6c-1.1,5.7-2.3,11.4-3.1,17.1
|
|
22
|
-
c-1.2,8.3-2.2,16.8-2.5,25.2c-0.3,7.7-0.1,15.4,0.4,23.1c0.2,3.2,0.8,6.5,1.2,9.7c0.1,1.1-0.1,1.4-1.3,1.3
|
|
23
|
-
c-11.6-1.2-22.4-4.3-32.5-10.3c-0.8-0.4-0.9-1-1-1.7c-0.5-7.9,0.2-15.9,0.9-23.8c1.3-14.7,4.2-29.2,7.7-43.6
|
|
24
|
-
c0.1-0.3,0.1-0.6,0.1-0.9C388.3,462.4,388.1,462,388.1,461.7z"/>
|
|
25
|
-
</g>
|
|
26
|
-
<g id="XMLID_554_">
|
|
27
|
-
</g>
|
|
28
|
-
</g>
|
|
29
|
-
<path id="XMLID_477_" class="st1" d="M396.4,411.9c7.1-4,14.5-6.9,22.2-9c10.1-2.7,20.3-3.8,30.8-3.2c16,0.9,30.9,5.3,44.5,13.6
|
|
30
|
-
c22.2,13.4,36.8,32.6,44.1,57.5c3.5,11.8-0.1,21.9-10.2,29.8c-12.2,9.6-27.9,9.1-40-1.2c-6.8-5.8-11.5-13.1-15.3-21.1
|
|
31
|
-
c-3.2-6.7-5.8-13.8-8.9-20.6c-5.6-12.6-13-23.7-23.9-32.4c-8.6-6.8-18.2-11.6-29-13.8c-4.2-0.9-8.7-0.9-12.9,0.3
|
|
32
|
-
c-0.3,0.1-0.5,0.1-0.9,0.1C396.7,412,396.6,412,396.4,411.9z"/>
|
|
33
|
-
<g id="XMLID_556_">
|
|
34
|
-
<g id="XMLID_426_">
|
|
35
|
-
<path id="XMLID_552_" class="st0" d="M485.4,585.2c0.1,0.1,0.1,0.2,0.2,0.3c-2.6,1.3-5.2,2.4-7.8,3.4c-6.1,2.3-12.2,3.8-18.5,5
|
|
36
|
-
c-1,0.1-1.7,0-2.6-0.6c-6.9-5.1-12.6-11.4-17.4-18.4c-4-5.7-7.1-11.8-9.9-18.2c-0.1-0.3-0.3-0.5-0.2-1c4-0.1,8,0.3,12,0.2
|
|
37
|
-
c6.5-0.2,13-0.5,19.5-1.4c1.5-0.2,2.3,0.2,2.9,1.6C469.1,567.2,476.1,577,485.4,585.2z"/>
|
|
38
|
-
<path id="XMLID_551_" class="st0" d="M433.5,593.9c0.1,0.1,0.1,0.3,0.2,0.5c-4.2-0.4-8.3-1.1-12.3-2.1
|
|
39
|
-
c-10.4-2.5-20.3-6.5-29.2-12.3c-0.9-0.5-1.5-1.3-2.1-2.3c-5.5-10.1-8.6-20.9-9.7-32.3c-0.2-1.5-0.3-3-0.5-4.5
|
|
40
|
-
c0.3-0.3,0.5,0,0.8,0.2c9.9,6.3,20.5,10.3,31.9,12.3c2.7,0.4,4,1.3,4.7,4.2C420.5,570.7,425.7,582.9,433.5,593.9z"/>
|
|
41
|
-
<path id="XMLID_428_" class="st0" d="M370.7,558.4c0.1,1.2,0.3,2.5,0.4,4.1c-7.7-8.6-13.4-17.9-17.7-28.2
|
|
42
|
-
c-5.1-12.3-7.5-25.3-6.9-38.8c0.3,0.9,0.8,1.6,1,2.5c3.5,9.7,8.3,18.7,14.9,26.9c2.2,2.7,4.3,5.4,7,7.6c0.6,0.5,0.9,1.2,0.8,2.1
|
|
43
|
-
C369.9,542.6,369.7,550.5,370.7,558.4z"/>
|
|
44
|
-
</g>
|
|
45
|
-
<g id="XMLID_427_">
|
|
46
|
-
</g>
|
|
47
|
-
</g>
|
|
48
|
-
</g>
|
|
49
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="344 397 200 200" style="enable-background:new 344 397 200 200;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#0A6CAF;}
|
|
7
|
+
.st1{fill:#4DB276;}
|
|
8
|
+
</style>
|
|
9
|
+
<g>
|
|
10
|
+
<g id="XMLID_421_">
|
|
11
|
+
<g id="XMLID_553_">
|
|
12
|
+
<path id="XMLID_555_" class="st0" d="M444.8,490c0-0.1,0-0.1,0-0.2c-0.1-0.1,0-0.2-0.2-0.3C444.7,489.5,444.7,489.6,444.8,490
|
|
13
|
+
C444.8,489.9,444.8,489.9,444.8,490z M388.1,461.7c0,0.1-0.1,0.2-0.3,0.4c-7.7,20.8-13.9,42-16.6,64.2c-3.9-3-7.1-6.5-10.2-10.2
|
|
14
|
+
c-5.7-6.9-10.1-14.8-13.9-23c-1-2.1-0.4-4.1-0.2-6.2c1.1-10.5,3.8-20.5,8.1-30.1c5.7-12.7,13.9-23.7,24.3-32.9
|
|
15
|
+
c4.2-3.7,9.3-4.5,14.7-3.8c8.8,1.2,17.2,3.6,25.1,7.7c8.4,4.4,15.1,10.7,20.9,18.2c10.1,12.8,17.1,27,22.1,42.3
|
|
16
|
+
c2.7,8.6,7.4,16.1,14,22.3c6.9,6.4,15.3,9.6,24.7,10.6c7.3,0.8,14.4,0.3,21.2-2.5c7.7-3,13.9-8.1,18.6-14.8
|
|
17
|
+
c0.2-0.3,0.4-0.5,0.9-1.2c-0.1,3.5-0.5,6.6-1,9.6c-2.9,18.1-10.4,34.2-22.2,48.2c-4.1,4.9-8.8,9.2-13.8,13.2c-1,0.8-1.8,1-3,0.4
|
|
18
|
+
c-5.5-2.3-10.4-5.6-14.8-9.5c-10.6-9.4-18.3-21.1-24.8-33.6c-6.6-12.7-11.7-26-16.1-39.6c-0.1-0.4-0.3-0.8-0.4-1.2
|
|
19
|
+
c-0.2-0.1-0.3-0.3-0.3-0.6c0,0.4-0.1,0.9,0.1,1.3c1,7.1,2.3,14.3,3.8,21.3c1.9,9,4.5,17.8,7.5,26.4c0.2,0.6,0.2,1-0.6,1.1
|
|
20
|
+
c-6.8,1.4-13.8,2.5-20.7,3c-3,0.2-6,0.3-9,0.5c-1,0.1-1.5-0.3-1.7-1.2c-2.9-10.6-4.9-21.4-6-32.5c-0.9-9-1-18-0.8-27
|
|
21
|
+
c0.1-5.3,0.5-10.6,0.9-15.8c0-0.8,0.1-1.4,0.1-1.9c-0.2,0.3,0,1.1-0.4,1.6c-1.1,5.7-2.3,11.4-3.1,17.1
|
|
22
|
+
c-1.2,8.3-2.2,16.8-2.5,25.2c-0.3,7.7-0.1,15.4,0.4,23.1c0.2,3.2,0.8,6.5,1.2,9.7c0.1,1.1-0.1,1.4-1.3,1.3
|
|
23
|
+
c-11.6-1.2-22.4-4.3-32.5-10.3c-0.8-0.4-0.9-1-1-1.7c-0.5-7.9,0.2-15.9,0.9-23.8c1.3-14.7,4.2-29.2,7.7-43.6
|
|
24
|
+
c0.1-0.3,0.1-0.6,0.1-0.9C388.3,462.4,388.1,462,388.1,461.7z"/>
|
|
25
|
+
</g>
|
|
26
|
+
<g id="XMLID_554_">
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
<path id="XMLID_477_" class="st1" d="M396.4,411.9c7.1-4,14.5-6.9,22.2-9c10.1-2.7,20.3-3.8,30.8-3.2c16,0.9,30.9,5.3,44.5,13.6
|
|
30
|
+
c22.2,13.4,36.8,32.6,44.1,57.5c3.5,11.8-0.1,21.9-10.2,29.8c-12.2,9.6-27.9,9.1-40-1.2c-6.8-5.8-11.5-13.1-15.3-21.1
|
|
31
|
+
c-3.2-6.7-5.8-13.8-8.9-20.6c-5.6-12.6-13-23.7-23.9-32.4c-8.6-6.8-18.2-11.6-29-13.8c-4.2-0.9-8.7-0.9-12.9,0.3
|
|
32
|
+
c-0.3,0.1-0.5,0.1-0.9,0.1C396.7,412,396.6,412,396.4,411.9z"/>
|
|
33
|
+
<g id="XMLID_556_">
|
|
34
|
+
<g id="XMLID_426_">
|
|
35
|
+
<path id="XMLID_552_" class="st0" d="M485.4,585.2c0.1,0.1,0.1,0.2,0.2,0.3c-2.6,1.3-5.2,2.4-7.8,3.4c-6.1,2.3-12.2,3.8-18.5,5
|
|
36
|
+
c-1,0.1-1.7,0-2.6-0.6c-6.9-5.1-12.6-11.4-17.4-18.4c-4-5.7-7.1-11.8-9.9-18.2c-0.1-0.3-0.3-0.5-0.2-1c4-0.1,8,0.3,12,0.2
|
|
37
|
+
c6.5-0.2,13-0.5,19.5-1.4c1.5-0.2,2.3,0.2,2.9,1.6C469.1,567.2,476.1,577,485.4,585.2z"/>
|
|
38
|
+
<path id="XMLID_551_" class="st0" d="M433.5,593.9c0.1,0.1,0.1,0.3,0.2,0.5c-4.2-0.4-8.3-1.1-12.3-2.1
|
|
39
|
+
c-10.4-2.5-20.3-6.5-29.2-12.3c-0.9-0.5-1.5-1.3-2.1-2.3c-5.5-10.1-8.6-20.9-9.7-32.3c-0.2-1.5-0.3-3-0.5-4.5
|
|
40
|
+
c0.3-0.3,0.5,0,0.8,0.2c9.9,6.3,20.5,10.3,31.9,12.3c2.7,0.4,4,1.3,4.7,4.2C420.5,570.7,425.7,582.9,433.5,593.9z"/>
|
|
41
|
+
<path id="XMLID_428_" class="st0" d="M370.7,558.4c0.1,1.2,0.3,2.5,0.4,4.1c-7.7-8.6-13.4-17.9-17.7-28.2
|
|
42
|
+
c-5.1-12.3-7.5-25.3-6.9-38.8c0.3,0.9,0.8,1.6,1,2.5c3.5,9.7,8.3,18.7,14.9,26.9c2.2,2.7,4.3,5.4,7,7.6c0.6,0.5,0.9,1.2,0.8,2.1
|
|
43
|
+
C369.9,542.6,369.7,550.5,370.7,558.4z"/>
|
|
44
|
+
</g>
|
|
45
|
+
<g id="XMLID_427_">
|
|
46
|
+
</g>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
</svg>
|