You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tmpl 24 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. <!-- 头部导航栏 -->
  2. {{template "base/head" .}}
  3. <style>
  4. .label_after::after {
  5. margin: -.2em 0 0 .2em;
  6. content: '\00a0';
  7. }
  8. .selectcloudbrain .active.item {
  9. color: #0087f5 !important;
  10. border: 1px solid #0087f5;
  11. margin: -1px;
  12. background: #FFF !important;
  13. }
  14. #deletemodel {
  15. width: 100%;
  16. height: 100%;
  17. }
  18. /* 弹窗 */
  19. #mask {
  20. position: fixed;
  21. top: 0px;
  22. left: 0px;
  23. right: 0px;
  24. bottom: 0px;
  25. filter: alpha(opacity=60);
  26. background-color: #777;
  27. z-index: 1000;
  28. display: none;
  29. opacity: 0.8;
  30. -moz-opacity: 0.5;
  31. padding-top: 100px;
  32. color: #000000
  33. }
  34. #loadingPage {
  35. margin: 200px auto;
  36. width: 50px;
  37. height: 40px;
  38. text-align: center;
  39. font-size: 10px;
  40. display: block;
  41. }
  42. #loadingPage>div {
  43. background-color: green;
  44. height: 100%;
  45. width: 6px;
  46. display: inline-block;
  47. -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  48. animation: sk-stretchdelay 1.2s infinite ease-in-out;
  49. }
  50. #loadingPage .rect2 {
  51. -webkit-animation-delay: -1.1s;
  52. animation-delay: -1.1s;
  53. }
  54. #loadingPage .rect3 {
  55. -webkit-animation-delay: -1.0s;
  56. animation-delay: -1.0s;
  57. }
  58. #loadingPage .rect4 {
  59. -webkit-animation-delay: -0.9s;
  60. animation-delay: -0.9s;
  61. }
  62. #loadingPage .rect5 {
  63. -webkit-animation-delay: -0.8s;
  64. animation-delay: -0.8s;
  65. }
  66. @-webkit-keyframes sk-stretchdelay {
  67. 0%,
  68. 40%,
  69. 100% {
  70. -webkit-transform: scaleY(0.4)
  71. }
  72. 20% {
  73. -webkit-transform: scaleY(1.0)
  74. }
  75. }
  76. @keyframes sk-stretchdelay {
  77. 0%,
  78. 40%,
  79. 100% {
  80. transform: scaleY(0.4);
  81. -webkit-transform: scaleY(0.4);
  82. }
  83. 20% {
  84. transform: scaleY(1.0);
  85. -webkit-transform: scaleY(1.0);
  86. }
  87. }
  88. /* 消息框 */
  89. .alert {
  90. display: none;
  91. position: fixed;
  92. width: 100%;
  93. z-index: 1001;
  94. padding: 15px;
  95. border: 1px solid transparent;
  96. border-radius: 4px;
  97. text-align: center;
  98. font-weight: bold;
  99. }
  100. .alert-success {
  101. color: #3c763d;
  102. background-color: #dff0d8;
  103. border-color: #d6e9c6;
  104. }
  105. .alert-info {
  106. color: #31708f;
  107. background-color: #d9edf7;
  108. border-color: #bce8f1;
  109. }
  110. .alert-warning {
  111. color: #8a6d3b;
  112. background-color: #fcf8e3;
  113. border-color: #faebcc;
  114. }
  115. .alert-danger {
  116. color: #a94442;
  117. background-color: #f2dede;
  118. border-color: #ebccd1;
  119. }
  120. .pusher {
  121. width: calc(100% - 260px);
  122. box-sizing: border-box;
  123. }
  124. /* 弹窗 (background) */
  125. #imageModal {
  126. display: none;
  127. position: fixed;
  128. z-index: 1;
  129. left: 0;
  130. top: 0;
  131. width: 100%;
  132. height: 100%;
  133. overflow: auto;
  134. background-color: rgb(0, 0, 0);
  135. background-color: rgba(0, 0, 0, 0.4);
  136. }
  137. /* 弹窗内容 */
  138. .modal-content {
  139. background-color: #fefefe;
  140. margin: 15% auto;
  141. padding: 20px;
  142. border: 1px solid #888;
  143. width: 30%;
  144. }
  145. /* 关闭按钮 */
  146. .close {
  147. color: #aaa;
  148. float: right;
  149. font-size: 28px;
  150. font-weight: bold;
  151. }
  152. .close:hover,
  153. .close:focus {
  154. color: black;
  155. text-decoration: none;
  156. cursor: pointer;
  157. }
  158. .dis {
  159. margin-bottom: 20px;
  160. }
  161. .disabled {
  162. cursor: pointer;
  163. pointer-events: none;
  164. }
  165. .time-show {
  166. font-size: 10px;
  167. margin-top: 0.4rem;
  168. display: inline-block;
  169. }
  170. </style>
  171. <!-- 弹窗 -->
  172. <div id="mask">
  173. <div id="loadingPage">
  174. <div class="rect1"></div>
  175. <div class="rect2"></div>
  176. <div class="rect3"></div>
  177. <div class="rect4"></div>
  178. <div class="rect5"></div>
  179. </div>
  180. </div>
  181. <div class="alert"></div>
  182. <div class="repository release dataset-list view">
  183. {{template "repo/header" .}}
  184. {{template "base/alert" .}}
  185. <!-- 提示框 -->
  186. <div class="cloudbrain_debug" style="display: none;" data-debug="{{$.i18n.Tr "repo.debug"}}"
  187. data-debug-again="{{$.i18n.Tr "repo.debug_again"}}"></div>
  188. <!-- 列表容器 -->
  189. <div class="ui container">
  190. <div class="ui two column stackable grid">
  191. <div class="column">
  192. <div class="ui blue small menu compact selectcloudbrain">
  193. <a class="active item"
  194. href="{{.RepoLink}}/debugjob?debugListType=all">{{$.i18n.Tr "repo.modelarts.notebook"}}</a>
  195. <a class="item"
  196. href="{{.RepoLink}}/modelarts/train-job">{{$.i18n.Tr "repo.modelarts.train_job"}}</a>
  197. <a class="item"
  198. href="{{.RepoLink}}/modelarts/inference-job">{{$.i18n.Tr "repo.modelarts.infer_job"}}</a>
  199. <a class="item"
  200. href="{{.RepoLink}}/cloudbrain/benchmark">{{$.i18n.Tr "repo.modelarts.evaluate_job"}}</a>
  201. </div>
  202. </div>
  203. <div class="column right aligned">
  204. <div class="ui selection dropdown"
  205. style="min-width: 10em;min-height:2.6em;border-radius: .28571429rem;margin-right: 1em;padding: .67em 3.2em .7em 1em;">
  206. {{svg "octicon-server" 16}}
  207. <div class="default text" style="color: rgba(0,0,0,.87);"></div>
  208. <i class="dropdown icon"></i>
  209. <div class="menu">
  210. <div class="item" data-value="all">{{$.i18n.Tr "repo.gpu_type_all"}}</div>
  211. <div class="item" data-value="CPU/GPU">CPU/GPU</div>
  212. <div class="item" data-value="NPU">NPU</div>
  213. </div>
  214. </div>
  215. {{if .Permission.CanWrite $.UnitTypeCloudBrain}}
  216. <a class="ui green button"
  217. href="{{.RepoLink}}/cloudbrain/create">{{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}</a>
  218. {{else}}
  219. <a class="ui disabled button">{{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}</a>
  220. {{end}}
  221. </div>
  222. </div>
  223. {{if eq 0 (len .Tasks)}}
  224. <div class="ui placeholder segment bgtask-none">
  225. <div class="ui icon header bgtask-header-pic"></div>
  226. <div class="bgtask-content-header">{{$.i18n.Tr "repo.debug_task_not_created"}}</div>
  227. <div class="bgtask-content">
  228. {{if $.RepoIsEmpty}}
  229. <div class="bgtask-content-txt">{{$.i18n.Tr "repo.repo_not_initialized" .RepoLink | Safe}}</div>
  230. {{end}}
  231. <div class="bgtask-content-txt">{{$.i18n.Tr "repo.debug_task_running_limit"}}</div>
  232. <div class="bgtask-content-txt">{{$.i18n.Tr "repo.dataset_desc"}}</div>
  233. <div class="bgtask-content-txt">{{$.i18n.Tr "repo.platform_instructions" | Safe}}</div>
  234. </div>
  235. </div>
  236. {{else}}
  237. <!-- 中下列表展示区 -->
  238. <div class="ui grid">
  239. <div class="row">
  240. <div class="ui sixteen wide column">
  241. <!-- 任务展示 -->
  242. <!-- 表头 -->
  243. <div class="dataset list">
  244. <div class="ui grid stackable" style="background: #f0f0f0;;">
  245. <div class="row">
  246. <div class="four wide column">
  247. <span style="margin:0 6px">{{$.i18n.Tr "repo.cloudbrain_task"}}</span>
  248. </div>
  249. <div class="two wide column text center">
  250. <span style="margin:0 6px">{{$.i18n.Tr "repo.modelarts.status"}}</span>
  251. </div>
  252. <div class="two wide column text center">
  253. <span>{{$.i18n.Tr "repo.modelarts.createtime"}}</span>
  254. </div>
  255. <div class="two wide column text center">
  256. <span>{{$.i18n.Tr "repo.modelarts.computing_resources"}}</span>
  257. </div>
  258. <div class="one wide column text center">
  259. <span>{{$.i18n.Tr "repo.cloudbrain_creator"}}</span>
  260. </div>
  261. <div class="five wide column text center">
  262. <span>{{$.i18n.Tr "repo.cloudbrain_operate"}}</span>
  263. </div>
  264. </div>
  265. </div>
  266. {{range .Tasks}}
  267. <div class="ui grid stackable item">
  268. <div class="row">
  269. <!-- 任务名 -->
  270. <div class="four wide column">
  271. <a class="title"
  272. href='{{if eq .ComputeResource "CPU/GPU"}}{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}{{else}}{{$.RepoLink}}/modelarts/notebook/{{.Cloudbrain.ID}}{{end}}'
  273. title="{{.DisplayJobName}}" style="font-size: 14px;">
  274. <span class="fitted text_over"
  275. style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
  276. </a>
  277. </div>
  278. <div class="two wide column text center">
  279. <!--任务状态 -->
  280. <span class="job-status" id="{{.Cloudbrain.ID}}"
  281. data-repopath="{{$.RepoRelPath}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}"
  282. data-jobid="{{.Cloudbrain.ID}}" data-resource="{{.ComputeResource}}">
  283. <span><i id="{{.Cloudbrain.ID}}-icon" style="vertical-align: middle;"
  284. class="{{.Status}}"></i><span id="{{.Cloudbrain.ID}}-text"
  285. style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
  286. </span>
  287. </div>
  288. <div class="two wide column text center">
  289. <!-- 任务创建时间 -->
  290. <span style="font-size: 12px;margin-left: 0.4rem;"
  291. class="">{{TimeSinceUnix .Cloudbrain.CreatedUnix $.Lang}}</span>
  292. </div>
  293. <div class="two wide column text center">
  294. <!-- 任务计算资源 -->
  295. <span style="font-size: 12px;margin-left: 0.4rem;"
  296. class="">{{.ComputeResource}}</span>
  297. </div>
  298. <div class="one wide column text center">
  299. {{if .User.Name}}
  300. <a href="{{AppSubUrl}}/{{.User.Name}}" title="{{.User.Name}}"><img
  301. class="ui avatar image" src="{{.User.RelAvatarLink}}"></a>
  302. {{else}}
  303. <a title="Ghost"><img class="ui avatar image"
  304. src="{{AppSubUrl}}/user/avatar/Ghost/-1"></a>
  305. {{end}}
  306. </div>
  307. <div class="five wide column text center">
  308. <div class="ui compact buttons">
  309. <!-- {{if and (ne .Status "WAITING") (ne .JobType "DEBUG")}}
  310. <a class="ui basic button" href="{{$.Link}}/{{.Cloudbrain.ID}}/rate" target="_blank">
  311. 评分
  312. </a>
  313. {{end}} -->
  314. <!-- 调试 -->
  315. <form id="debugAgainForm-{{.Cloudbrain.ID}}">
  316. {{$.CsrfTokenHtml}}
  317. {{if .CanDebug}}
  318. {{if eq .Status "RUNNING" "WAITING" "CREATING" "STARTING"}}
  319. <a style="margin: 0 1rem;" id="ai-debug-{{.Cloudbrain.ID}}"
  320. class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}}disabled {{else}}blue {{end}}button'
  321. data-jobid="{{.Cloudbrain.ID}}"
  322. data-repopath='{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.Cloudbrain.ID}}/'>
  323. {{$.i18n.Tr "repo.debug"}}
  324. </a>
  325. {{else}}
  326. <a id="ai-debug-{{.Cloudbrain.ID}}"
  327. class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}} disabled {{else}}blue {{end}}button'
  328. data-jobid="{{.Cloudbrain.ID}}"
  329. data-repopath='{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.Cloudbrain.ID}}/'
  330. data-linkpath='{{$.Link}}'>
  331. {{$.i18n.Tr "repo.debug_again"}}
  332. </a>
  333. {{end}}
  334. {{else}}
  335. {{if eq .Status "RUNNING" "WAITING" "CREATING" "STARTING"}}
  336. <a class="ui basic disabled button">
  337. {{$.i18n.Tr "repo.debug"}}
  338. </a>
  339. {{else}}
  340. <a class="ui basic disabled button">
  341. {{$.i18n.Tr "repo.debug_again"}}
  342. </a>
  343. {{end}}
  344. {{end}}
  345. </form>
  346. <!-- 停止 -->
  347. <form id="stopForm-{{.Cloudbrain.ID}}" style="margin-left:-1px;">
  348. {{$.CsrfTokenHtml}}
  349. {{if .CanDel}}
  350. <a id="ai-stop-{{.Cloudbrain.ID}}"
  351. class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED" "CREATE_FAILED"}}disabled {{else}}blue {{end}}button'
  352. data-repopath="{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.Cloudbrain.ID}}/stop"
  353. data-jobid="{{.Cloudbrain.ID}}">
  354. {{$.i18n.Tr "repo.stop"}}
  355. </a>
  356. {{else}}
  357. <a class="ui basic disabled button">
  358. {{$.i18n.Tr "repo.stop"}}
  359. </a>
  360. {{end}}
  361. </form>
  362. <!-- 删除 -->
  363. <form id="delForm-{{.Cloudbrain.ID}}"
  364. action="{{if eq .ComputeResource "CPU/GPU"}}{{$.RepoLink}}/cloudbrain{{else}}{{$.RepoLink}}/modelarts/notebook{{end}}/{{.Cloudbrain.ID}}/del"
  365. method="post">
  366. <input type="hidden" name="debugListType" value="{{$.ListType}}">
  367. {{$.CsrfTokenHtml}}
  368. {{if .CanDel}}
  369. <a id="ai-delete-{{.Cloudbrain.ID}}"
  370. class='ui basic ai_delete {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "SUCCEEDED" "CREATE_FAILED"}}blue {{else}}disabled {{end}}button'
  371. style="border-radius: .28571429rem;">
  372. {{$.i18n.Tr "repo.delete"}}
  373. </a>
  374. {{else}}
  375. <a class="ui basic button disabled" style="border-radius: .28571429rem;">
  376. {{$.i18n.Tr "repo.delete"}}
  377. </a>
  378. {{end}}
  379. </form>
  380. </div>
  381. <div class="ui compact buttons"
  382. style="{{if eq .ComputeResource "CPU/GPU"}} visibility: visible {{else}} visibility: hidden{{end}}">
  383. <div class="ui dropdown" id="model_more"
  384. style="padding: .58928571em 1.125em .58928571em;">
  385. <div class="text">{{$.i18n.Tr "repo.more"}}</div>
  386. <i class="dropdown icon"></i>
  387. <div class="menu" style="right: auto;">
  388. <div class="item" style="padding: 0 !important;">
  389. {{if .CanDebug}}
  390. <a id="model-image-{{.Cloudbrain.ID}}"
  391. class='imageBtn ui basic {{if ne .Status "RUNNING"}}disabled {{else}}blue {{end}}button'
  392. href="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/commit_image">{{$.i18n.Tr "repo.submit_image"}}</a>
  393. {{else}}
  394. <a
  395. class="imageBtn ui basic disabled button">{{$.i18n.Tr "repo.submit_image"}}</a>
  396. {{end}}
  397. </div>
  398. <div class="item" style="padding: 0 !important;">
  399. <!-- 模型下载 -->
  400. {{if .CanDebug}}
  401. <a class="ui basic blue button"
  402. href="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/models"
  403. target="_blank">{{$.i18n.Tr "repo.download"}}</a>
  404. {{else}}
  405. <a
  406. class="ui basic disabled button">{{$.i18n.Tr "repo.download"}}</a>
  407. {{end}}
  408. </div>
  409. {{if and (ne .JobType "DEBUG") (eq .Cloudbrain.Type 0)}}
  410. <div class="item" style="padding: 0 !important;">
  411. <a class="ui basic blue button"
  412. href="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/rate"
  413. target="_blank">
  414. 评分
  415. </a>
  416. </div>
  417. {{end}}
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <!-- 镜像列表弹窗 -->
  423. </div>
  424. </div>
  425. {{end}}
  426. <div id="app" style="margin-top: 2rem;">
  427. <div class="center">
  428. <el-pagination background @current-change="handleCurrentChange" :current-page="page"
  429. :page-sizes="[10]" :page-size="10" layout="total, sizes, prev, pager, next, jumper"
  430. :total="{{.Page.Paginater.Total}}">
  431. </el-pagination>
  432. </div>
  433. </div>
  434. </div>
  435. </div>
  436. </div>
  437. </div>
  438. {{end}}
  439. </div>
  440. </div>
  441. </div>
  442. </div>
  443. <!-- 确认模态框 -->
  444. <div id="deletemodel">
  445. <div class="ui basic modal">
  446. <div class="ui icon header">
  447. <i class="trash icon"></i> {{.i18n.Tr "cloudbrain.delete_task"}}
  448. </div>
  449. <div class="content">
  450. <p>{{.i18n.Tr "cloudbrain.task_delete_confirm"}}</p>
  451. </div>
  452. <div class="actions">
  453. <div class="ui red basic inverted cancel button">
  454. <i class="remove icon"></i> {{.i18n.Tr "cloudbrain.operate_cancel"}}
  455. </div>
  456. <div class="ui green basic inverted ok button">
  457. <i class="checkmark icon"></i> {{.i18n.Tr "cloudbrain.operate_confirm"}}
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. {{template "base/footer" .}}
  464. <script>
  465. // 调试和评分新开窗口
  466. const { AppSubUrl, StaticUrlPrefix, csrf } = window.config;
  467. let url = {{.RepoLink }}
  468. let redirect_to = {{ $.Link }}
  469. let getParam = getQueryVariable('debugListType')
  470. let dropdownValue = ['all', '', false].includes(getParam) ? '{{$.i18n.Tr "repo.gpu_type_all"}}' : getParam
  471. // localStorage.setItem('all',location.href)
  472. function getQueryVariable(variable) {
  473. let query = window.location.search.substring(1);
  474. let vars = query.split("&");
  475. for (let i = 0; i < vars.length; i++) {
  476. let pair = vars[i].split("=");
  477. if (pair[0] == variable) { return pair[1]; }
  478. }
  479. return (false);
  480. }
  481. $(document).ready(function () {
  482. dropdownValue = dropdownValue === "CPU%2FGPU" ? 'CPU/GPU' : dropdownValue
  483. $('.default.text').text(dropdownValue)
  484. $('.ui.dropdown')
  485. .dropdown({
  486. action: 'hide',
  487. })
  488. $('.ui.selection.dropdown').dropdown({
  489. onChange: function (value) {
  490. location.href = `${url}/debugjob?debugListType=${value}`
  491. }
  492. })
  493. $('.message .close')
  494. .on('click', function () {
  495. $(this)
  496. .closest('.message')
  497. .transition('fade')
  498. })
  499. })
  500. </script>