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.
Files changed (427) hide show
  1. package/README.md +39 -0
  2. package/bin/index.js +248 -0
  3. package/package.json +29 -0
  4. package/template/.husky/commit-msg +42 -0
  5. package/template/.husky/pre-commit +2 -0
  6. package/template/.husky/prepare-commit-msg +1 -0
  7. package/template/.lintstagedrc +5 -0
  8. package/template/.prettierignore +26 -0
  9. package/template/.prettierrc.cjs +10 -0
  10. package/template/.stylelintignore +1 -0
  11. package/template/.stylelintrc.json +6 -0
  12. package/template/README.md +36 -0
  13. package/template/commitlint.config.cjs +64 -0
  14. package/template/eslint.config.js +96 -0
  15. package/template/index.html +17 -0
  16. package/template/interface/user.ts +5 -0
  17. package/template/package.json +84 -0
  18. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
  19. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
  20. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
  21. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
  22. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
  23. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
  24. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
  25. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
  26. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
  27. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
  28. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
  29. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
  30. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
  31. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
  32. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
  33. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
  34. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
  35. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
  36. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
  37. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
  38. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
  39. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
  40. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
  41. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
  42. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
  43. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
  44. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
  45. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
  46. package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
  47. package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
  48. package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
  49. package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
  50. package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  51. package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  52. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  53. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  54. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  55. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  56. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  57. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  58. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  59. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  60. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  61. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  62. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  63. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  64. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  65. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  66. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  67. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  68. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  69. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  70. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  71. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  72. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  73. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  74. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  75. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  76. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  77. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  78. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  79. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  80. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  81. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  82. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  83. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  84. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  85. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  86. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  87. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  88. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  89. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  90. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  91. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  92. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  93. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  94. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  95. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  96. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  97. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  98. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  99. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  100. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  101. package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
  102. package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
  103. package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
  104. package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
  105. package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
  106. package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
  107. package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
  108. package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
  109. package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
  110. package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
  111. package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
  112. package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
  113. package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
  114. package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
  115. package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
  116. package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
  117. package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
  118. package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
  119. package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
  120. package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
  121. package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
  122. package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
  123. package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
  124. package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
  125. package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
  126. package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
  127. package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
  128. package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
  129. package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
  130. package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
  131. package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
  132. package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
  133. package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
  134. package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
  135. package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
  136. package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
  137. package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
  138. package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
  139. package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
  140. package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
  141. package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
  142. package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
  143. package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
  144. package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
  145. package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
  146. package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
  147. package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
  148. package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
  149. package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
  150. package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
  151. package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
  152. package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
  153. package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
  154. package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
  155. package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
  156. package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
  157. package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
  158. package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
  159. package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
  160. package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
  161. package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
  162. package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
  163. package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
  164. package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
  165. package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
  166. package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
  167. package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
  168. package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
  169. package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
  170. package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
  171. package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
  172. package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
  173. package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
  174. package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
  175. package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
  176. package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
  177. package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
  178. package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
  179. package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
  180. package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
  181. package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
  182. package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
  183. package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
  184. package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
  185. package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
  186. package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
  187. package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
  188. package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
  189. package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
  190. package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
  191. package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
  192. package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
  193. package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
  194. package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
  195. package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
  196. package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
  197. package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
  198. package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
  199. package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
  200. package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
  201. package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
  202. package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
  203. package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
  204. package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
  205. package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
  206. package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
  207. package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
  208. package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
  209. package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
  210. package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
  211. package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
  212. package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
  213. package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
  214. package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
  215. package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
  216. package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
  217. package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
  218. package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
  219. package/template/public/Cesium1.119/Assets/Textures/pin.svg +1 -0
  220. package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
  221. package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
  222. package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +10924 -0
  223. package/template/public/Cesium1.119/Cesium.js +185772 -0
  224. package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
  225. package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
  226. package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
  227. package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
  228. package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
  229. package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
  230. package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +11424 -0
  231. package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
  232. package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
  233. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
  234. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
  235. package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
  236. package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
  237. package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  238. package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
  239. package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  240. package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
  241. package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
  242. package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  243. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  244. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  245. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  246. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  247. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  248. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  249. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  250. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  251. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  252. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  253. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  254. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  255. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  256. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  257. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  258. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  259. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  260. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  261. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  262. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  263. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  264. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  265. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  266. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  267. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  268. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  269. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  270. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  271. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  272. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  273. package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
  274. package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
  275. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +94 -0
  276. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  277. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
  278. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
  279. package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  280. package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
  281. package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
  282. package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
  283. package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
  284. package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
  285. package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
  286. package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
  287. package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
  288. package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
  289. package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
  290. package/template/public/Cesium1.119/Widgets/shared.css +103 -0
  291. package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
  292. package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
  293. package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
  294. package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
  295. package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
  296. package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
  297. package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
  298. package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
  299. package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
  300. package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
  301. package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
  302. package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
  303. package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
  304. package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
  305. package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
  306. package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
  307. package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
  308. package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
  309. package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
  310. package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
  311. package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
  312. package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
  313. package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
  314. package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
  315. package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
  316. package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
  317. package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
  318. package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
  319. package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
  320. package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
  321. package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
  322. package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
  323. package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
  324. package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
  325. package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
  326. package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
  327. package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
  328. package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
  329. package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
  330. package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
  331. package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
  332. package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
  333. package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
  334. package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
  335. package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
  336. package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
  337. package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
  338. package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
  339. package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
  340. package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
  341. package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
  342. package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
  343. package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
  344. package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
  345. package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
  346. package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
  347. package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
  348. package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
  349. package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
  350. package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
  351. package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
  352. package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
  353. package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
  354. package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
  355. package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
  356. package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
  357. package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
  358. package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
  359. package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
  360. package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
  361. package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
  362. package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
  363. package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
  364. package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
  365. package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
  366. package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
  367. package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
  368. package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
  369. package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
  370. package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
  371. package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
  372. package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
  373. package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
  374. package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
  375. package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
  376. package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
  377. package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
  378. package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
  379. package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
  380. package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
  381. package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
  382. package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
  383. package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
  384. package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
  385. package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
  386. package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
  387. package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
  388. package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
  389. package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
  390. package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
  391. package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
  392. package/template/public/Cesium1.119/index.cjs +185632 -0
  393. package/template/public/Cesium1.119/index.js +182874 -0
  394. package/template/public/vite.svg +1 -0
  395. package/template/scripts/gen-api.cjs +178 -0
  396. package/template/src/App.vue +6 -0
  397. package/template/src/api/README.md +3 -0
  398. package/template/src/assets/favicon.svg +49 -0
  399. package/template/src/components/Body/index.vue +16 -0
  400. package/template/src/components/Header/index.vue +8 -0
  401. package/template/src/directive/focus.ts +9 -0
  402. package/template/src/layout/BasicLayout.vue +28 -0
  403. package/template/src/main.ts +33 -0
  404. package/template/src/router/index.ts +24 -0
  405. package/template/src/stores/README.md +3 -0
  406. package/template/src/stores/useCounter.ts +12 -0
  407. package/template/src/styles/alerts.less +85 -0
  408. package/template/src/styles/global.css +326 -0
  409. package/template/src/utils/alert.ts +58 -0
  410. package/template/src/utils/components.ts +21 -0
  411. package/template/src/utils/composables/useAlert.ts +14 -0
  412. package/template/src/views/Test/index.vue +23 -0
  413. package/template/src/views/index.vue +9 -0
  414. package/template/src/vite-env.d.ts +1 -0
  415. package/template/swdg/bin/index.js +23 -0
  416. package/template/swdg/package.json +27 -0
  417. package/template/tests/README.md +6 -0
  418. package/template/tests/e2e/README.md +3 -0
  419. package/template/tests/setup.ts +1 -0
  420. package/template/tests/unit/example.test.ts +7 -0
  421. package/template/tests/utils/helpers.ts +1 -0
  422. package/template/tsconfig.json +51 -0
  423. package/template/tsconfig.node.json +11 -0
  424. package/template/types/README.md +3 -0
  425. package/template/types/global.d.ts +9 -0
  426. package/template/vite.config.ts +75 -0
  427. package/template/vitest.config.ts +9 -0
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,178 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const axios = require('axios');
4
+ const { execFileSync } = require('child_process');
5
+ const fse = require('fs-extra');
6
+
7
+ /**
8
+ * 修复旧式参数结构
9
+ */
10
+ function fixTypeName(name) {
11
+ return name.replace(/\s+/g, '');
12
+ }
13
+
14
+ function fixSwagger(doc) {
15
+ if (doc.components && doc.components.schemas) {
16
+ for (const [key, schema] of Object.entries(doc.components.schemas)) {
17
+ if (key.includes(' ')) {
18
+ const newKey = fixTypeName(key);
19
+ doc.components.schemas[newKey] = schema;
20
+ delete doc.components.schemas[key];
21
+ }
22
+ }
23
+ }
24
+ if (doc.paths) {
25
+ for (const [_, methods] of Object.entries(doc.paths)) {
26
+ for (const [_, method] of Object.entries(methods)) {
27
+ if (method.parameters) {
28
+ method.parameters = method.parameters
29
+ .filter((p) => p.in !== 'header')
30
+ .map((p) => {
31
+ if (p.type) {
32
+ p.schema = { type: fixTypeName(p.type) };
33
+ if (p.format) p.schema.format = p.format;
34
+ delete p.type;
35
+ delete p.format;
36
+ }
37
+ if (p.schema && p.schema.$ref) {
38
+ p.schema.$ref = p.schema.$ref.replace(/\s+/g, '');
39
+ }
40
+ return p;
41
+ });
42
+ }
43
+ if (method.requestBody && method.requestBody.content) {
44
+ for (const contentType in method.requestBody.content) {
45
+ const schema = method.requestBody.content[contentType].schema;
46
+ if (schema && schema.$ref) {
47
+ schema.$ref = schema.$ref.replace(/\s+/g, '');
48
+ }
49
+ }
50
+ }
51
+ if (method.responses) {
52
+ for (const code in method.responses) {
53
+ const resp = method.responses[code];
54
+ if (resp.content) {
55
+ for (const contentType in resp.content) {
56
+ const schema = resp.content[contentType].schema;
57
+ if (schema && schema.$ref) {
58
+ schema.$ref = schema.$ref.replace(/\s+/g, '');
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ if (method.operationId && typeof method.operationId === 'string') {
65
+ const parts = method.operationId.split('/');
66
+ method.operationId = parts[parts.length - 1];
67
+ }
68
+ }
69
+ }
70
+ }
71
+ return doc;
72
+ }
73
+
74
+ /**
75
+ * 下载并保存 API 文档
76
+ */
77
+ async function fetchAndFixSwagger(url, outputPath) {
78
+ const { data } = await axios.get(url);
79
+ const fixed = fixSwagger(data);
80
+ fs.writeFileSync(outputPath, JSON.stringify(fixed, null, 2), 'utf-8');
81
+ }
82
+
83
+ /**
84
+ * 调用 openapi-generator 生成代码
85
+ */
86
+ function generateClient(inputPath, outputDir) {
87
+ // Avoid space issues by passing relative paths to the CLI
88
+ const relativeInputPath = path.relative(process.cwd(), inputPath);
89
+ const relativeOutputDir = path.relative(process.cwd(), outputDir);
90
+ execFileSync(
91
+ 'npx',
92
+ [
93
+ 'openapi-generator-cli',
94
+ 'generate',
95
+ '--skip-validate-spec',
96
+ '-i',
97
+ relativeInputPath,
98
+ '-g',
99
+ 'typescript-axios',
100
+ '-o',
101
+ relativeOutputDir,
102
+ ],
103
+ { stdio: 'inherit' }
104
+ );
105
+ }
106
+
107
+ /**
108
+ * 清理和移动生成结果
109
+ */
110
+ function moveToSrcApi(serviceName, tempDir, targetBase) {
111
+ const destDir = path.join(targetBase, serviceName);
112
+ if (fs.existsSync(destDir)) fse.removeSync(destDir);
113
+
114
+ // 移除无用文件
115
+ const filesToRemove = [
116
+ '.swagger-codegen',
117
+ '.gitignore',
118
+ '.npmignore',
119
+ '.swagger-codegen-ignore',
120
+ 'git_push.sh',
121
+ 'package.json',
122
+ 'README.md',
123
+ 'tsconfig.json',
124
+ ];
125
+ for (const file of filesToRemove) {
126
+ const f = path.join(tempDir, file);
127
+ if (fs.existsSync(f)) fs.rmSync(f, { recursive: true, force: true });
128
+ }
129
+
130
+ fse.moveSync(tempDir, destDir, { overwrite: true });
131
+ console.log(
132
+ `✅ ${serviceName} 接口生成完毕,已移动到 src/api/${serviceName}`
133
+ );
134
+ }
135
+
136
+ /**
137
+ * 入口函数
138
+ */
139
+ async function generateService(serviceName, apiUrl) {
140
+ const tempPath = path.join(__dirname, '.tmp', serviceName);
141
+ const fixedJsonPath = path.join(tempPath, 'swagger-fixed.json');
142
+
143
+ fs.mkdirSync(tempPath, { recursive: true });
144
+ await fetchAndFixSwagger(apiUrl, fixedJsonPath);
145
+ generateClient(fixedJsonPath, tempPath);
146
+ moveToSrcApi(serviceName, tempPath, path.resolve(__dirname, '../src/api'));
147
+ }
148
+
149
+ /**
150
+ * 多服务入口
151
+ */
152
+ async function main() {
153
+ const base = 'http://10.20.124.50:30030';
154
+ const services = [
155
+ {
156
+ name: 'userservice',
157
+ url: `${base}/userservice/v2/v3/api-docs`,
158
+ },
159
+ {
160
+ name: 'storageservice',
161
+ url: `${base}/storageservice/v2/v3/api-docs`,
162
+ },
163
+ {
164
+ name: 'underwatersys',
165
+ url: `${base}/underwatersys/v3/api-docs`,
166
+ },
167
+ ];
168
+
169
+ for (const svc of services) {
170
+ try {
171
+ await generateService(svc.name, svc.url);
172
+ } catch (err) {
173
+ console.error(`❌ 生成失败: ${svc.name}`, err.message);
174
+ }
175
+ }
176
+ }
177
+
178
+ main();
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <router-view />
3
+ </template>
4
+ <script setup lang="ts"></script>
5
+
6
+ <style scoped></style>
@@ -0,0 +1,3 @@
1
+ # api
2
+
3
+ 后端接口请求统一放在这里。
@@ -0,0 +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>
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <div class="body-wrapper">I am body</div>
3
+ <el-button type="primary" @click="handleClick"> go to test page </el-button>
4
+ <el-button type="primary" @click="handleClick"> go to test page </el-button>
5
+ </template>
6
+ <script setup lang="ts">
7
+ import { useRouter } from 'vue-router';
8
+
9
+ const router = useRouter();
10
+
11
+ const handleClick = () => {
12
+ router.push('/test');
13
+ };
14
+ </script>
15
+
16
+ <style scoped></style>
@@ -0,0 +1,8 @@
1
+ <template>
2
+ <div class="header-wrapper">
3
+ <h1>this is header</h1>
4
+ </div>
5
+ </template>
6
+ <script setup lang="ts"></script>
7
+
8
+ <style scoped></style>
@@ -0,0 +1,9 @@
1
+ import type { Directive } from 'vue';
2
+
3
+ const focus: Directive = {
4
+ mounted(el) {
5
+ el.focus();
6
+ },
7
+ };
8
+
9
+ export default focus;
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <div class="layout">
3
+ <header class="layout-header">{{ title }}</header>
4
+ <main class="layout-content">
5
+ <slot />
6
+ </main>
7
+ </div>
8
+ </template>
9
+
10
+ <script setup lang="ts">
11
+ defineProps<{ title?: string }>();
12
+ </script>
13
+
14
+ <style scoped>
15
+ .layout {
16
+ min-height: 100vh;
17
+ background: #f6f7fb;
18
+ }
19
+
20
+ .layout-header {
21
+ padding: 16px;
22
+ font-weight: 600;
23
+ }
24
+
25
+ .layout-content {
26
+ padding: 16px;
27
+ }
28
+ </style>
@@ -0,0 +1,33 @@
1
+ import { createApp } from 'vue';
2
+ import { createPinia } from 'pinia';
3
+
4
+ import './styles/global.css';
5
+ import './styles/alerts.less';
6
+
7
+ import ElementPlus from 'element-plus';
8
+ import zhCn from 'element-plus/es/locale/lang/zh-cn';
9
+ import 'element-plus/dist/index.css';
10
+
11
+ import App from './App.vue';
12
+ import 'amfe-flexible';
13
+ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
14
+
15
+ import router from '@/router';
16
+ import globalComponents from '@/utils/components';
17
+ import AlertPlugin from '@/utils/alert';
18
+ import focus from '@/directive/focus';
19
+
20
+ const app = createApp(App);
21
+ const pinia = createPinia();
22
+ pinia.use(piniaPluginPersistedstate);
23
+
24
+ app.use(ElementPlus, {
25
+ locale: zhCn,
26
+ });
27
+ app.use(pinia);
28
+ app.use(router);
29
+ app.use(globalComponents);
30
+ app.use(AlertPlugin);
31
+ app.directive('focus', focus);
32
+
33
+ app.mount('#app');
@@ -0,0 +1,24 @@
1
+ import { createRouter, createWebHashHistory } from 'vue-router';
2
+
3
+ const pages = import.meta.glob('../views/**/*.vue');
4
+
5
+ const routes = Object.keys(pages).map((path) => {
6
+ const routePath = path
7
+ .replace(/..\/views/, '')
8
+ .replace(/\.\w+$/, '')
9
+ .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
10
+ .toLowerCase()
11
+ .replace(/index$/, '');
12
+
13
+ return {
14
+ path: routePath,
15
+ component: pages[path],
16
+ };
17
+ });
18
+
19
+ const router = createRouter({
20
+ history: createWebHashHistory(),
21
+ routes,
22
+ });
23
+
24
+ export default router;
@@ -0,0 +1,3 @@
1
+ # stores
2
+
3
+ 全局状态管理放在这里。
@@ -0,0 +1,12 @@
1
+ import { defineStore } from 'pinia';
2
+
3
+ export const useCounterStore = defineStore('counter', {
4
+ state: () => ({
5
+ count: 0,
6
+ }),
7
+ actions: {
8
+ inc() {
9
+ this.count += 1;
10
+ },
11
+ },
12
+ });
@@ -0,0 +1,85 @@
1
+ // 定义颜色变量
2
+ @success-color: #67c23a;
3
+ @warning-color: #e6a23c;
4
+ @error-color: #f56c6c;
5
+ @info-color: #909399;
6
+ @text-color: #fff;
7
+ @shadow-color: rgba(0, 0, 0, 0.1);
8
+
9
+ // 基础字体大小和间距
10
+ @font-size: 16px;
11
+ @padding: 10px 20px;
12
+
13
+ // 动画渐变定义
14
+ @keyframes fadeIn {
15
+ from {
16
+ opacity: 0;
17
+ }
18
+ to {
19
+ opacity: 1;
20
+ }
21
+ }
22
+
23
+ @keyframes fadeOut {
24
+ from {
25
+ opacity: 1;
26
+ }
27
+ to {
28
+ opacity: 0;
29
+ }
30
+ }
31
+
32
+ .alerts-container {
33
+ position: fixed;
34
+ top: 20px;
35
+ left: 50%;
36
+ transform: translateX(-50%);
37
+ z-index: 9999;
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+ gap: 10px;
42
+ }
43
+
44
+ .alert {
45
+ padding: @padding;
46
+ color: @text-color;
47
+ border-radius: 5px;
48
+ box-shadow: 0 2px 8px @shadow-color;
49
+ font-size: @font-size;
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ gap: 10px;
54
+ width: 250px;
55
+ animation: fadeIn 0.5s ease-out;
56
+
57
+ div:last-child {
58
+ font-size: larger;
59
+ cursor: pointer;
60
+ user-select: none;
61
+ line-height: 100%;
62
+ vertical-align: middle;
63
+ transform: translateX(5px);
64
+
65
+ &:hover {
66
+ color: #f4f4f4;
67
+ }
68
+ }
69
+ }
70
+
71
+ .alert-success {
72
+ background-color: @success-color;
73
+ }
74
+
75
+ .alert-warning {
76
+ background-color: @warning-color;
77
+ }
78
+
79
+ .alert-error {
80
+ background-color: @error-color;
81
+ }
82
+
83
+ .alert-info {
84
+ background-color: @info-color;
85
+ }