create-swdg-frontend 0.1.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 +39 -0
- package/bin/index.js +248 -0
- package/package.json +29 -0
- package/template/.husky/commit-msg +42 -0
- package/template/.husky/pre-commit +2 -0
- package/template/.husky/prepare-commit-msg +1 -0
- package/template/.lintstagedrc +5 -0
- package/template/.prettierignore +26 -0
- package/template/.prettierrc.cjs +10 -0
- package/template/.stylelintignore +1 -0
- package/template/.stylelintrc.json +6 -0
- package/template/README.md +36 -0
- package/template/commitlint.config.cjs +64 -0
- package/template/eslint.config.js +96 -0
- package/template/index.html +17 -0
- package/template/interface/user.ts +5 -0
- package/template/package.json +84 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
- 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 +14 -0
- 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 +1 -0
- 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 +10924 -0
- package/template/public/Cesium1.119/Cesium.js +185772 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
- 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 +11424 -0
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- 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 +84 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- 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 +94 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
- package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
- package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
- package/template/public/Cesium1.119/Widgets/shared.css +103 -0
- package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
- package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
- package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
- package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
- package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
- package/template/public/Cesium1.119/index.cjs +185632 -0
- package/template/public/Cesium1.119/index.js +182874 -0
- package/template/public/vite.svg +1 -0
- package/template/scripts/gen-api.cjs +178 -0
- package/template/src/App.vue +6 -0
- package/template/src/api/README.md +3 -0
- package/template/src/assets/favicon.svg +49 -0
- package/template/src/components/Body/index.vue +16 -0
- package/template/src/components/Header/index.vue +8 -0
- package/template/src/directive/focus.ts +9 -0
- package/template/src/layout/BasicLayout.vue +28 -0
- package/template/src/main.ts +33 -0
- package/template/src/router/index.ts +24 -0
- package/template/src/stores/README.md +3 -0
- package/template/src/stores/useCounter.ts +12 -0
- package/template/src/styles/alerts.less +85 -0
- package/template/src/styles/global.css +326 -0
- package/template/src/utils/alert.ts +58 -0
- package/template/src/utils/components.ts +21 -0
- package/template/src/utils/composables/useAlert.ts +14 -0
- package/template/src/views/Test/index.vue +23 -0
- package/template/src/views/index.vue +9 -0
- package/template/src/vite-env.d.ts +1 -0
- package/template/swdg/bin/index.js +23 -0
- package/template/swdg/package.json +27 -0
- package/template/tests/README.md +6 -0
- package/template/tests/e2e/README.md +3 -0
- package/template/tests/setup.ts +1 -0
- package/template/tests/unit/example.test.ts +7 -0
- package/template/tests/utils/helpers.ts +1 -0
- package/template/tsconfig.json +51 -0
- package/template/tsconfig.node.json +11 -0
- package/template/types/README.md +3 -0
- package/template/types/global.d.ts +9 -0
- package/template/vite.config.ts +75 -0
- package/template/vitest.config.ts +9 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
html,
|
|
2
|
+
body {
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
font-family: '思源黑体', 'Microsoft YaHei', '黑体', '宋体', Arial, sans-serif;
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Flex 基础设置 */
|
|
12
|
+
.flex-h,
|
|
13
|
+
.flex-h-right,
|
|
14
|
+
.flex-h-left-center,
|
|
15
|
+
.flex-h-top,
|
|
16
|
+
.flex-h-top-wrap,
|
|
17
|
+
.flex-h-space,
|
|
18
|
+
.flex-h-wrap,
|
|
19
|
+
.flex-h-center {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.flex-v,
|
|
25
|
+
.flex-v-center {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.flex-v-left {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-flow: column nowrap;
|
|
33
|
+
place-content: left left;
|
|
34
|
+
align-items: left;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* 水平对齐 */
|
|
38
|
+
.flex-h,
|
|
39
|
+
.flex-h-wrap,
|
|
40
|
+
.flex-h-space {
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.flex-left-center {
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
align-items: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.flex-h-right,
|
|
51
|
+
.flex-right-center {
|
|
52
|
+
justify-content: flex-end;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.flex-h-top,
|
|
57
|
+
.flex-h-top-wrap {
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
justify-content: flex-start;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.flex-h-space {
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.flex-h-center {
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* 垂直对齐 */
|
|
72
|
+
.flex-v {
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.flex-h-left {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-flow: row nowrap;
|
|
80
|
+
place-content: left left !important;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.flex-h-left-center {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-flow: row wrap;
|
|
87
|
+
place-content: baseline left;
|
|
88
|
+
align-items: baseline;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.flex-h-top {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-flow: row nowrap;
|
|
94
|
+
place-content: top top;
|
|
95
|
+
align-items: top;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.flex-h-bottom {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-flow: row nowrap;
|
|
101
|
+
place-content: bottom bottom;
|
|
102
|
+
align-items: bottom;
|
|
103
|
+
justify-content: bottom;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.flex-h-top-wrap {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-flow: row wrap;
|
|
109
|
+
place-content: top top;
|
|
110
|
+
align-items: top;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.flex-v-top {
|
|
114
|
+
justify-content: flex-start;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.flex-v-center {
|
|
118
|
+
justify-content: center;
|
|
119
|
+
align-items: center;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Flex 包裹 */
|
|
123
|
+
.flex-h-wrap,
|
|
124
|
+
.flex-h-top-wrap {
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* 弹性空间 */
|
|
129
|
+
.spring,
|
|
130
|
+
.spring-h,
|
|
131
|
+
.spring-v {
|
|
132
|
+
flex-grow: 1;
|
|
133
|
+
flex-shrink: 1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.spring-h {
|
|
137
|
+
height: 100%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.spring-v {
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.button-hover-effect {
|
|
145
|
+
transition:
|
|
146
|
+
opacity 0.3s ease,
|
|
147
|
+
transform 0.3s ease,
|
|
148
|
+
background-color 0.3s ease;
|
|
149
|
+
|
|
150
|
+
&:hover {
|
|
151
|
+
opacity: 0.9 !important;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
/*text-decoration: blink !important;*/
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.full-w {
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.full-h {
|
|
162
|
+
height: 100%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.full-wh {
|
|
166
|
+
width: 100%;
|
|
167
|
+
height: 100%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.grid-h-one-fourth {
|
|
171
|
+
display: grid;
|
|
172
|
+
grid-template-columns: repeat(4, 1fr);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.grid-h-one-third {
|
|
176
|
+
display: grid;
|
|
177
|
+
grid-template-columns: repeat(3, 1fr);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.grid-h-half {
|
|
181
|
+
display: grid;
|
|
182
|
+
grid-template-columns: repeat(2, 1fr);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.grid-h-ratio-1-2 {
|
|
186
|
+
display: grid;
|
|
187
|
+
grid-template-columns: 1fr 2fr;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.no-wrap {
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.sw-hidden {
|
|
195
|
+
visibility: hidden;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.sw-visible {
|
|
199
|
+
visibility: visible;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ym-main-color {
|
|
203
|
+
color: rgb(42 130 228 / 100%);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ym-margin-right {
|
|
207
|
+
margin-right: 16px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ym-margin-left {
|
|
211
|
+
margin-left: 16px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ym-margin-top {
|
|
215
|
+
margin-top: 16px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ym-margin-bottom {
|
|
219
|
+
margin-bottom: 16px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.ym-margin-left-right {
|
|
223
|
+
margin-left: 16px;
|
|
224
|
+
margin-right: 16px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ym-button-fill {
|
|
228
|
+
height: 32px;
|
|
229
|
+
padding: 0 18px;
|
|
230
|
+
border-radius: 3px 0 0 3px;
|
|
231
|
+
background: rgb(42 130 228 / 100%);
|
|
232
|
+
border: 1px solid rgb(223 225 232 / 100%);
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
font-weight: 400;
|
|
235
|
+
letter-spacing: 0;
|
|
236
|
+
line-height: 32px;
|
|
237
|
+
color: rgb(255 255 255 / 100%);
|
|
238
|
+
text-align: center;
|
|
239
|
+
vertical-align: top;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ym-button-plain {
|
|
243
|
+
height: 32px;
|
|
244
|
+
padding: 0 18px;
|
|
245
|
+
border-radius: 3px 0 0 3px;
|
|
246
|
+
border: 1px solid rgb(223 225 232 / 100%);
|
|
247
|
+
font-size: 14px;
|
|
248
|
+
font-weight: 400;
|
|
249
|
+
letter-spacing: 0;
|
|
250
|
+
line-height: 32px;
|
|
251
|
+
color: rgb(42 130 228 / 100%);
|
|
252
|
+
text-align: center;
|
|
253
|
+
vertical-align: top;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.ym-main-font {
|
|
257
|
+
font-size: 12px;
|
|
258
|
+
font-weight: 400;
|
|
259
|
+
letter-spacing: 0;
|
|
260
|
+
line-height: 17.38px;
|
|
261
|
+
color: rgb(56 56 56 / 100%);
|
|
262
|
+
text-align: left;
|
|
263
|
+
vertical-align: top;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.common-dialog-form-item {
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
width: 425px;
|
|
270
|
+
height: 32px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.sw-btn-rev {
|
|
274
|
+
opacity: 0.8;
|
|
275
|
+
cursor: pointer;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.sw-btn-rev:hover {
|
|
279
|
+
opacity: 1;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.sw-btn {
|
|
283
|
+
opacity: 1;
|
|
284
|
+
cursor: pointer;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.sw-btn:hover {
|
|
288
|
+
opacity: 0.8;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.ym-border-bottom {
|
|
292
|
+
border-bottom: 1px solid rgba(223, 225, 232, 1);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.el-popper.el-popper__map {
|
|
296
|
+
z-index: 9 !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* 禁止数字输入框的加减按钮 */
|
|
300
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
301
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
302
|
+
-webkit-appearance: none;
|
|
303
|
+
margin: 0;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
input[type='number'] {
|
|
307
|
+
-moz-appearance: textfield;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
input[type='number'] {
|
|
311
|
+
-ms-appearance: textfield;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.disabled {
|
|
315
|
+
opacity: 0.5 !important;
|
|
316
|
+
cursor: not-allowed !important;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.temp-disabled {
|
|
320
|
+
cursor: not-allowed !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.ol-dragbox {
|
|
324
|
+
background-color: rgba(52, 152, 219, 0.3) !important;
|
|
325
|
+
border: 2px solid rgba(42, 130, 228) !important;
|
|
326
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
install(app: App) {
|
|
5
|
+
// 创建或获取一个统一的alert容器
|
|
6
|
+
const getOrCreateAlertsContainer = () => {
|
|
7
|
+
let alertsContainer = document.querySelector('.alerts-container');
|
|
8
|
+
if (!alertsContainer) {
|
|
9
|
+
alertsContainer = document.createElement('div');
|
|
10
|
+
alertsContainer.setAttribute('class', 'alerts-container');
|
|
11
|
+
document.body.appendChild(alertsContainer);
|
|
12
|
+
}
|
|
13
|
+
return alertsContainer;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const alertMethod = (
|
|
17
|
+
message: string,
|
|
18
|
+
type: 'success' | 'warning' | 'error' | 'info',
|
|
19
|
+
duration = 3000
|
|
20
|
+
) => {
|
|
21
|
+
const alertsContainer = getOrCreateAlertsContainer();
|
|
22
|
+
const alertContainer = document.createElement('div');
|
|
23
|
+
alertContainer.setAttribute('class', `alert alert-${type}`);
|
|
24
|
+
const alertContent = document.createElement('div');
|
|
25
|
+
alertContent.innerText = message;
|
|
26
|
+
const close = document.createElement('div');
|
|
27
|
+
close.innerText = '×';
|
|
28
|
+
const to1 = window.setTimeout(() => {
|
|
29
|
+
alertContainer.attributeStyleMap.set(
|
|
30
|
+
'animation',
|
|
31
|
+
'fadeOut 0.6s ease-out'
|
|
32
|
+
);
|
|
33
|
+
alertContainer.attributeStyleMap.set('animation-play-state', 'running');
|
|
34
|
+
}, duration - 450);
|
|
35
|
+
const to2 = window.setTimeout(() => {
|
|
36
|
+
alertsContainer.removeChild(alertContainer);
|
|
37
|
+
}, duration);
|
|
38
|
+
close.onclick = () => {
|
|
39
|
+
alertContainer.attributeStyleMap.set(
|
|
40
|
+
'animation',
|
|
41
|
+
'fadeOut 0.6s ease-out'
|
|
42
|
+
);
|
|
43
|
+
alertContainer.attributeStyleMap.set('animation-play-state', 'running');
|
|
44
|
+
window.setTimeout(() => {
|
|
45
|
+
alertsContainer.removeChild(alertContainer);
|
|
46
|
+
window.clearTimeout(to1);
|
|
47
|
+
window.clearTimeout(to2);
|
|
48
|
+
}, 450);
|
|
49
|
+
};
|
|
50
|
+
alertContainer.appendChild(alertContent);
|
|
51
|
+
alertContainer.appendChild(close);
|
|
52
|
+
alertsContainer.appendChild(alertContainer);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// 使用 app.provide 提供 alert 方法
|
|
56
|
+
app.provide('alert', alertMethod);
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
install(app: App) {
|
|
5
|
+
const components = import.meta.glob('../components/**/*.vue');
|
|
6
|
+
|
|
7
|
+
for (const path in components) {
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(components, path)) {
|
|
9
|
+
const componentName = path
|
|
10
|
+
.split('/')
|
|
11
|
+
.slice(2) // 去掉 `../components/`
|
|
12
|
+
.join('/')
|
|
13
|
+
.replace('.vue', '');
|
|
14
|
+
|
|
15
|
+
components[path]().then((module: any) => {
|
|
16
|
+
app.component(componentName, module.default);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/composables/useAlert.ts
|
|
2
|
+
import { inject } from 'vue';
|
|
3
|
+
|
|
4
|
+
export const useAlert = () => {
|
|
5
|
+
const alert = inject('alert') as (
|
|
6
|
+
message: string,
|
|
7
|
+
type: 'success' | 'warning' | 'error' | 'info',
|
|
8
|
+
duration?: number
|
|
9
|
+
) => void;
|
|
10
|
+
if (!alert) {
|
|
11
|
+
throw new Error('No alert provided!');
|
|
12
|
+
}
|
|
13
|
+
return alert;
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="test">
|
|
3
|
+
<h1>this is test page</h1>
|
|
4
|
+
<p>counter: {{ counter.count }}</p>
|
|
5
|
+
<el-button type="primary" @click="handleClick"> go to home page </el-button>
|
|
6
|
+
<el-button type="success" @click="counter.inc"> +1 </el-button>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
import { useAlert } from '@composables/useAlert';
|
|
11
|
+
import { useCounterStore } from '@stores/useCounter';
|
|
12
|
+
import { fetchDemoUser } from '@api/modules/demo';
|
|
13
|
+
const alert = useAlert();
|
|
14
|
+
const counter = useCounterStore();
|
|
15
|
+
|
|
16
|
+
const handleClick = () => {
|
|
17
|
+
alert('测试alert', 'error');
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
fetchDemoUser().catch((): void => undefined);
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style scoped></style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from 'node:child_process';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
4
|
+
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
let cliPath;
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
cliPath = require.resolve('create-swdg/bin/index.js');
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error(
|
|
12
|
+
'Failed to resolve create-swdg. Please run: npm i -g create-swdg'
|
|
13
|
+
);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const child = spawn(process.execPath, [cliPath, ...process.argv.slice(2)], {
|
|
18
|
+
stdio: 'inherit',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
child.on('exit', (code) => {
|
|
22
|
+
process.exit(code ?? 1);
|
|
23
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "swdg",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "SWDG frontend scaffolding CLI wrapper",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"swdg": "bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"create-swdg": "^0.1.3"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=18"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"swdg",
|
|
20
|
+
"create",
|
|
21
|
+
"scaffold",
|
|
22
|
+
"vite",
|
|
23
|
+
"vue"
|
|
24
|
+
],
|
|
25
|
+
"author": "inupedia",
|
|
26
|
+
"license": "MIT"
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// Vitest setup file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sum = (a: number, b: number) => a + b;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"strictNullChecks": false,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"outDir": "./dist",
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
"composite": true,
|
|
13
|
+
"baseUrl": ".", // This must be set if you're using 'paths'
|
|
14
|
+
"paths": {
|
|
15
|
+
"@/*": ["src/*"],
|
|
16
|
+
"@assets/*": ["src/assets/*"],
|
|
17
|
+
"@style/*": ["src/styles/*"],
|
|
18
|
+
"@stores/*": ["src/stores/*"],
|
|
19
|
+
"@router/*": ["src/router/*"],
|
|
20
|
+
"@api/*": ["src/api/*"],
|
|
21
|
+
"@utils/*": ["src/utils/*"],
|
|
22
|
+
"@components/*": ["src/components/*"],
|
|
23
|
+
"@interface/*": ["interface/*"],
|
|
24
|
+
"@types/*": ["types/*"],
|
|
25
|
+
"@views/*": ["src/views/*"],
|
|
26
|
+
"@composables/*": ["src/utils/composables/*"],
|
|
27
|
+
"@directive/*": ["src/directive/*"],
|
|
28
|
+
"@layout/*": ["src/layout/*"]
|
|
29
|
+
},
|
|
30
|
+
"types": [],
|
|
31
|
+
"isolatedModules": true,
|
|
32
|
+
"jsx": "preserve",
|
|
33
|
+
"jsxImportSource": "vue",
|
|
34
|
+
"resolveJsonModule": true,
|
|
35
|
+
"allowJs": true,
|
|
36
|
+
"skipLibCheck": true,
|
|
37
|
+
"sourceMap": true
|
|
38
|
+
},
|
|
39
|
+
"include": [
|
|
40
|
+
"src/**/*",
|
|
41
|
+
"./src/**/*.ts",
|
|
42
|
+
"./src/**/*.vue",
|
|
43
|
+
"./src/**/*.d.ts",
|
|
44
|
+
"./src/**/*.json",
|
|
45
|
+
"./src/vue-shim.d.ts",
|
|
46
|
+
"./src/**/*.vue",
|
|
47
|
+
"interface/**/*.ts",
|
|
48
|
+
"types/**/*.d.ts"
|
|
49
|
+
],
|
|
50
|
+
"exclude": ["**/node_modules/**", "**/dist/**"]
|
|
51
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import vue from '@vitejs/plugin-vue';
|
|
3
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
|
4
|
+
import Components from 'unplugin-vue-components/vite';
|
|
5
|
+
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
|
6
|
+
import copyPlugin from 'rollup-plugin-copy';
|
|
7
|
+
import path from 'path';
|
|
8
|
+
import postCssPxToRem from 'postcss-pxtorem';
|
|
9
|
+
|
|
10
|
+
const rootValue = 192;
|
|
11
|
+
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
base: './',
|
|
14
|
+
build: {
|
|
15
|
+
sourcemap: true,
|
|
16
|
+
emptyOutDir: false,
|
|
17
|
+
rollupOptions: {
|
|
18
|
+
plugins: [
|
|
19
|
+
copyPlugin({
|
|
20
|
+
targets: [{ src: 'src/assets/**/*', dest: 'dist/assets' }],
|
|
21
|
+
}),
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
outDir: 'dist',
|
|
25
|
+
assetsDir: 'assets',
|
|
26
|
+
},
|
|
27
|
+
plugins: [
|
|
28
|
+
vue(),
|
|
29
|
+
AutoImport({
|
|
30
|
+
resolvers: [ElementPlusResolver()],
|
|
31
|
+
}),
|
|
32
|
+
Components({
|
|
33
|
+
resolvers: [ElementPlusResolver()],
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
resolve: {
|
|
37
|
+
alias: {
|
|
38
|
+
'@': path.resolve(__dirname, './src'),
|
|
39
|
+
'@assets': path.resolve(__dirname, './src/assets'),
|
|
40
|
+
'@style': path.resolve(__dirname, './src/styles'),
|
|
41
|
+
'@stores': path.resolve(__dirname, './src/stores'),
|
|
42
|
+
'@components': path.resolve(__dirname, './src/components'),
|
|
43
|
+
'@utils': path.resolve(__dirname, './src/utils'),
|
|
44
|
+
'@api': path.resolve(__dirname, './src/api'),
|
|
45
|
+
'@types': path.resolve(__dirname, './types'),
|
|
46
|
+
'@views': path.resolve(__dirname, './src/views'),
|
|
47
|
+
'@composables': path.resolve(__dirname, './src/utils/composables'),
|
|
48
|
+
'@router': path.resolve(__dirname, './src/router'),
|
|
49
|
+
'@directive': path.resolve(__dirname, './src/directive'),
|
|
50
|
+
'@layout': path.resolve(__dirname, './src/layout'),
|
|
51
|
+
'@interface': path.resolve(__dirname, './interface'),
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
css: {
|
|
55
|
+
preprocessorOptions: {
|
|
56
|
+
less: {
|
|
57
|
+
javascriptEnabled: true,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
postcss: {
|
|
61
|
+
plugins: [
|
|
62
|
+
postCssPxToRem({
|
|
63
|
+
rootValue: rootValue,
|
|
64
|
+
propList: ['*'],
|
|
65
|
+
selectorBlackList: ['.norem'],
|
|
66
|
+
}),
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
server: {
|
|
71
|
+
host: '0.0.0.0',
|
|
72
|
+
port: 3000,
|
|
73
|
+
open: true,
|
|
74
|
+
},
|
|
75
|
+
});
|