cronSettings.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. /* Cron Settings Styles */
  2. .cron-settings-content {
  3. min-height: 600px;
  4. }
  5. .cron-migrations {
  6. padding: 20px;
  7. }
  8. .migration-header {
  9. display: flex;
  10. justify-content: space-between;
  11. align-items: center;
  12. margin-bottom: 30px;
  13. padding-bottom: 20px;
  14. border-bottom: 2px solid #e0e0e0;
  15. }
  16. .migration-header h2 {
  17. margin: 0;
  18. color: #333;
  19. font-size: 24px;
  20. font-weight: 600;
  21. }
  22. .migration-header h2 i {
  23. margin-right: 10px;
  24. color: #667eea;
  25. }
  26. .migration-controls {
  27. display: flex;
  28. gap: 10px;
  29. }
  30. .migration-controls .btn {
  31. padding: 8px 16px;
  32. font-size: 14px;
  33. border-radius: 4px;
  34. border: none;
  35. cursor: pointer;
  36. transition: all 0.3s ease;
  37. }
  38. .migration-controls .btn-primary {
  39. background-color: #28a745;
  40. color: white;
  41. }
  42. .migration-controls .btn-primary:hover {
  43. background-color: #218838;
  44. }
  45. .migration-controls .btn-warning {
  46. background-color: #ffc107;
  47. color: #212529;
  48. }
  49. .migration-controls .btn-warning:hover {
  50. background-color: #e0a800;
  51. }
  52. .migration-controls .btn-danger {
  53. background-color: #dc3545;
  54. color: white;
  55. }
  56. .migration-controls .btn-danger:hover {
  57. background-color: #c82333;
  58. }
  59. .migration-progress {
  60. background: #f8f9fa;
  61. padding: 20px;
  62. border-radius: 8px;
  63. margin-bottom: 30px;
  64. border-left: 4px solid #667eea;
  65. }
  66. .progress-overview {
  67. margin-bottom: 20px;
  68. }
  69. .progress-bar {
  70. width: 100%;
  71. height: 12px;
  72. background-color: #e0e0e0;
  73. border-radius: 6px;
  74. overflow: hidden;
  75. margin-bottom: 8px;
  76. position: relative;
  77. }
  78. .progress-fill {
  79. height: 100%;
  80. background: linear-gradient(90deg, #667eea, #764ba2);
  81. border-radius: 6px;
  82. transition: width 0.3s ease;
  83. position: relative;
  84. }
  85. .progress-fill::after {
  86. content: '';
  87. position: absolute;
  88. top: 0;
  89. left: 0;
  90. right: 0;
  91. bottom: 0;
  92. background: linear-gradient(
  93. 90deg,
  94. transparent,
  95. rgba(255, 255, 255, 0.4),
  96. transparent
  97. );
  98. animation: shimmer 2s infinite;
  99. }
  100. @keyframes shimmer {
  101. 0% {
  102. transform: translateX(-100%);
  103. }
  104. 100% {
  105. transform: translateX(100%);
  106. }
  107. }
  108. .progress-text {
  109. text-align: center;
  110. font-weight: 700;
  111. color: #667eea;
  112. font-size: 18px;
  113. }
  114. .progress-label {
  115. text-align: center;
  116. color: #666;
  117. font-size: 14px;
  118. margin-top: 4px;
  119. }
  120. .current-step {
  121. text-align: center;
  122. color: #333;
  123. font-size: 16px;
  124. font-weight: 500;
  125. margin-bottom: 16px;
  126. }
  127. .current-step i {
  128. margin-right: 8px;
  129. color: #667eea;
  130. }
  131. .migration-status {
  132. text-align: center;
  133. color: #333;
  134. font-size: 16px;
  135. background-color: #e3f2fd;
  136. padding: 12px 16px;
  137. border-radius: 6px;
  138. border: 1px solid #bbdefb;
  139. }
  140. .migration-status i {
  141. margin-right: 8px;
  142. color: #2196f3;
  143. }
  144. .migration-steps {
  145. margin-top: 30px;
  146. }
  147. .migration-steps h3 {
  148. margin: 0 0 20px 0;
  149. color: #333;
  150. font-size: 20px;
  151. font-weight: 600;
  152. }
  153. .steps-list {
  154. max-height: 400px;
  155. overflow-y: auto;
  156. border: 1px solid #e0e0e0;
  157. border-radius: 8px;
  158. }
  159. .migration-step {
  160. padding: 16px 20px;
  161. border-bottom: 1px solid #f0f0f0;
  162. transition: all 0.3s ease;
  163. }
  164. .migration-step:last-child {
  165. border-bottom: none;
  166. }
  167. .migration-step.completed {
  168. background-color: #d4edda;
  169. border-left: 4px solid #28a745;
  170. }
  171. .migration-step.current {
  172. background-color: #cce7ff;
  173. border-left: 4px solid #667eea;
  174. animation: pulse 2s infinite;
  175. }
  176. @keyframes pulse {
  177. 0% {
  178. box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  179. }
  180. 70% {
  181. box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  182. }
  183. 100% {
  184. box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  185. }
  186. }
  187. .step-header {
  188. display: flex;
  189. align-items: center;
  190. margin-bottom: 8px;
  191. }
  192. .step-icon {
  193. margin-right: 12px;
  194. font-size: 18px;
  195. width: 24px;
  196. text-align: center;
  197. }
  198. .step-icon i.fa-check-circle {
  199. color: #28a745;
  200. }
  201. .step-icon i.fa-cog.fa-spin {
  202. color: #667eea;
  203. }
  204. .step-icon i.fa-circle-o {
  205. color: #ccc;
  206. }
  207. .step-info {
  208. flex: 1;
  209. }
  210. .step-name {
  211. font-weight: 600;
  212. color: #333;
  213. font-size: 14px;
  214. margin-bottom: 2px;
  215. }
  216. .step-description {
  217. color: #666;
  218. font-size: 12px;
  219. line-height: 1.3;
  220. }
  221. .step-progress {
  222. text-align: right;
  223. min-width: 40px;
  224. }
  225. .step-progress .progress-text {
  226. font-size: 12px;
  227. font-weight: 600;
  228. }
  229. .step-progress-bar {
  230. width: 100%;
  231. height: 4px;
  232. background-color: #e0e0e0;
  233. border-radius: 2px;
  234. overflow: hidden;
  235. margin-top: 8px;
  236. }
  237. .step-progress-bar .progress-fill {
  238. height: 100%;
  239. background: linear-gradient(90deg, #667eea, #764ba2);
  240. border-radius: 2px;
  241. transition: width 0.3s ease;
  242. }
  243. /* Cron Jobs Styles */
  244. .cron-jobs {
  245. padding: 20px;
  246. }
  247. .jobs-header {
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: center;
  251. margin-bottom: 30px;
  252. padding-bottom: 20px;
  253. border-bottom: 2px solid #e0e0e0;
  254. }
  255. .jobs-header h2 {
  256. margin: 0;
  257. color: #333;
  258. font-size: 24px;
  259. font-weight: 600;
  260. }
  261. .jobs-header h2 i {
  262. margin-right: 10px;
  263. color: #667eea;
  264. }
  265. .jobs-controls .btn {
  266. padding: 8px 16px;
  267. font-size: 14px;
  268. border-radius: 4px;
  269. border: none;
  270. cursor: pointer;
  271. transition: all 0.3s ease;
  272. }
  273. .jobs-controls .btn-success {
  274. background-color: #28a745;
  275. color: white;
  276. }
  277. .jobs-controls .btn-success:hover {
  278. background-color: #218838;
  279. }
  280. .jobs-list {
  281. margin-top: 20px;
  282. }
  283. .table {
  284. width: 100%;
  285. border-collapse: collapse;
  286. background: white;
  287. border-radius: 8px;
  288. overflow: hidden;
  289. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  290. }
  291. .table thead {
  292. background-color: #f8f9fa;
  293. }
  294. .table th,
  295. .table td {
  296. padding: 12px 16px;
  297. text-align: left;
  298. border-bottom: 1px solid #e0e0e0;
  299. }
  300. .table th {
  301. font-weight: 600;
  302. color: #333;
  303. font-size: 14px;
  304. }
  305. .table td {
  306. font-size: 14px;
  307. color: #666;
  308. }
  309. .status-badge {
  310. padding: 4px 8px;
  311. border-radius: 4px;
  312. font-size: 12px;
  313. font-weight: 600;
  314. text-transform: uppercase;
  315. }
  316. .status-badge.status-running {
  317. background-color: #d4edda;
  318. color: #155724;
  319. }
  320. .status-badge.status-stopped {
  321. background-color: #f8d7da;
  322. color: #721c24;
  323. }
  324. .status-badge.status-paused {
  325. background-color: #fff3cd;
  326. color: #856404;
  327. }
  328. .status-badge.status-completed {
  329. background-color: #d1ecf1;
  330. color: #0c5460;
  331. }
  332. .status-badge.status-error {
  333. background-color: #f8d7da;
  334. color: #721c24;
  335. }
  336. .btn-group {
  337. display: flex;
  338. gap: 4px;
  339. }
  340. .btn-group .btn {
  341. padding: 4px 8px;
  342. font-size: 12px;
  343. border-radius: 3px;
  344. border: none;
  345. cursor: pointer;
  346. transition: all 0.3s ease;
  347. }
  348. .btn-group .btn-success {
  349. background-color: #28a745;
  350. color: white;
  351. }
  352. .btn-group .btn-success:hover {
  353. background-color: #218838;
  354. }
  355. .btn-group .btn-warning {
  356. background-color: #ffc107;
  357. color: #212529;
  358. }
  359. .btn-group .btn-warning:hover {
  360. background-color: #e0a800;
  361. }
  362. .btn-group .btn-danger {
  363. background-color: #dc3545;
  364. color: white;
  365. }
  366. .btn-group .btn-danger:hover {
  367. background-color: #c82333;
  368. }
  369. /* Add Job Form Styles */
  370. .cron-add-job {
  371. padding: 20px;
  372. }
  373. .add-job-header {
  374. margin-bottom: 30px;
  375. padding-bottom: 20px;
  376. border-bottom: 2px solid #e0e0e0;
  377. }
  378. .add-job-header h2 {
  379. margin: 0;
  380. color: #333;
  381. font-size: 24px;
  382. font-weight: 600;
  383. }
  384. .add-job-header h2 i {
  385. margin-right: 10px;
  386. color: #667eea;
  387. }
  388. .add-job-form {
  389. max-width: 600px;
  390. }
  391. .form-group {
  392. margin-bottom: 20px;
  393. }
  394. .form-group label {
  395. display: block;
  396. margin-bottom: 8px;
  397. font-weight: 600;
  398. color: #333;
  399. font-size: 14px;
  400. }
  401. .form-control {
  402. width: 100%;
  403. padding: 10px 12px;
  404. border: 1px solid #ddd;
  405. border-radius: 4px;
  406. font-size: 14px;
  407. transition: border-color 0.3s ease;
  408. }
  409. .form-control:focus {
  410. outline: none;
  411. border-color: #667eea;
  412. box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
  413. }
  414. .form-control[type="number"] {
  415. width: 100px;
  416. }
  417. .form-actions {
  418. display: flex;
  419. gap: 10px;
  420. margin-top: 30px;
  421. }
  422. .form-actions .btn {
  423. padding: 10px 20px;
  424. font-size: 14px;
  425. border-radius: 4px;
  426. border: none;
  427. cursor: pointer;
  428. transition: all 0.3s ease;
  429. }
  430. .form-actions .btn-primary {
  431. background-color: #667eea;
  432. color: white;
  433. }
  434. .form-actions .btn-primary:hover {
  435. background-color: #5a6fd8;
  436. }
  437. .form-actions .btn-default {
  438. background-color: #6c757d;
  439. color: white;
  440. }
  441. .form-actions .btn-default:hover {
  442. background-color: #5a6268;
  443. }
  444. /* Board Operations Styles */
  445. .cron-board-operations {
  446. padding: 20px;
  447. }
  448. .board-operations-header {
  449. display: flex;
  450. justify-content: space-between;
  451. align-items: center;
  452. margin-bottom: 30px;
  453. padding-bottom: 20px;
  454. border-bottom: 2px solid #e0e0e0;
  455. }
  456. .board-operations-header h2 {
  457. margin: 0;
  458. color: #333;
  459. font-size: 24px;
  460. font-weight: 600;
  461. }
  462. .board-operations-header h2 i {
  463. margin-right: 10px;
  464. color: #667eea;
  465. }
  466. .board-operations-controls {
  467. display: flex;
  468. gap: 10px;
  469. }
  470. .board-operations-controls .btn {
  471. padding: 8px 16px;
  472. font-size: 14px;
  473. border-radius: 4px;
  474. border: none;
  475. cursor: pointer;
  476. transition: all 0.3s ease;
  477. }
  478. .board-operations-controls .btn-success {
  479. background-color: #28a745;
  480. color: white;
  481. }
  482. .board-operations-controls .btn-success:hover {
  483. background-color: #218838;
  484. }
  485. .board-operations-controls .btn-primary {
  486. background-color: #667eea;
  487. color: white;
  488. }
  489. .board-operations-controls .btn-primary:hover {
  490. background-color: #5a6fd8;
  491. }
  492. .board-operations-stats {
  493. background: #f8f9fa;
  494. padding: 20px;
  495. border-radius: 8px;
  496. margin-bottom: 30px;
  497. border-left: 4px solid #667eea;
  498. }
  499. .stats-grid {
  500. display: grid;
  501. grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  502. gap: 20px;
  503. }
  504. .stat-item {
  505. text-align: center;
  506. }
  507. .stat-value {
  508. font-size: 32px;
  509. font-weight: 700;
  510. color: #667eea;
  511. margin-bottom: 4px;
  512. }
  513. .stat-label {
  514. font-size: 14px;
  515. color: #666;
  516. text-transform: uppercase;
  517. letter-spacing: 0.5px;
  518. }
  519. .system-resources {
  520. background: #f8f9fa;
  521. padding: 20px;
  522. border-radius: 8px;
  523. margin-bottom: 30px;
  524. border-left: 4px solid #28a745;
  525. }
  526. .resource-item {
  527. display: flex;
  528. align-items: center;
  529. margin-bottom: 15px;
  530. }
  531. .resource-item:last-child {
  532. margin-bottom: 0;
  533. }
  534. .resource-label {
  535. min-width: 120px;
  536. font-weight: 600;
  537. color: #333;
  538. font-size: 14px;
  539. }
  540. .resource-bar {
  541. flex: 1;
  542. height: 12px;
  543. background-color: #e0e0e0;
  544. border-radius: 6px;
  545. overflow: hidden;
  546. margin: 0 15px;
  547. position: relative;
  548. }
  549. .resource-fill {
  550. height: 100%;
  551. border-radius: 6px;
  552. transition: width 0.3s ease;
  553. position: relative;
  554. }
  555. .resource-item:nth-child(1) .resource-fill {
  556. background: linear-gradient(90deg, #28a745, #20c997);
  557. }
  558. .resource-item:nth-child(2) .resource-fill {
  559. background: linear-gradient(90deg, #007bff, #6f42c1);
  560. }
  561. .resource-value {
  562. min-width: 50px;
  563. text-align: right;
  564. font-weight: 600;
  565. color: #333;
  566. font-size: 14px;
  567. }
  568. .board-operations-search {
  569. margin-bottom: 30px;
  570. }
  571. .search-box {
  572. position: relative;
  573. max-width: 400px;
  574. }
  575. .search-box .form-control {
  576. padding-right: 40px;
  577. }
  578. .search-icon {
  579. position: absolute;
  580. right: 12px;
  581. top: 50%;
  582. transform: translateY(-50%);
  583. color: #999;
  584. font-size: 16px;
  585. }
  586. .board-operations-list {
  587. background: white;
  588. border-radius: 8px;
  589. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  590. overflow: hidden;
  591. }
  592. .operations-header {
  593. display: flex;
  594. justify-content: space-between;
  595. align-items: center;
  596. padding: 20px;
  597. background: #f8f9fa;
  598. border-bottom: 1px solid #e0e0e0;
  599. }
  600. .operations-header h3 {
  601. margin: 0;
  602. color: #333;
  603. font-size: 18px;
  604. font-weight: 600;
  605. }
  606. .pagination-info {
  607. color: #666;
  608. font-size: 14px;
  609. }
  610. .operations-table {
  611. overflow-x: auto;
  612. }
  613. .operations-table .table {
  614. margin: 0;
  615. border: none;
  616. }
  617. .operations-table .table th {
  618. background-color: #f8f9fa;
  619. border-bottom: 2px solid #e0e0e0;
  620. font-weight: 600;
  621. color: #333;
  622. white-space: nowrap;
  623. }
  624. .operations-table .table td {
  625. vertical-align: middle;
  626. border-bottom: 1px solid #f0f0f0;
  627. }
  628. .board-id {
  629. font-family: monospace;
  630. font-size: 12px;
  631. color: #666;
  632. background: #f8f9fa;
  633. padding: 4px 8px;
  634. border-radius: 4px;
  635. display: inline-block;
  636. }
  637. .operation-type {
  638. font-weight: 500;
  639. color: #333;
  640. text-transform: capitalize;
  641. }
  642. .progress-container {
  643. display: flex;
  644. align-items: center;
  645. gap: 8px;
  646. min-width: 120px;
  647. }
  648. .progress-container .progress-bar {
  649. flex: 1;
  650. height: 8px;
  651. background-color: #e0e0e0;
  652. border-radius: 4px;
  653. overflow: hidden;
  654. }
  655. .progress-container .progress-fill {
  656. height: 100%;
  657. background: linear-gradient(90deg, #667eea, #764ba2);
  658. border-radius: 4px;
  659. transition: width 0.3s ease;
  660. }
  661. .progress-container .progress-text {
  662. font-size: 12px;
  663. font-weight: 600;
  664. color: #667eea;
  665. min-width: 35px;
  666. text-align: right;
  667. }
  668. .pagination {
  669. display: flex;
  670. justify-content: space-between;
  671. align-items: center;
  672. padding: 20px;
  673. background: #f8f9fa;
  674. border-top: 1px solid #e0e0e0;
  675. }
  676. .pagination .btn {
  677. padding: 6px 12px;
  678. font-size: 12px;
  679. border-radius: 4px;
  680. border: 1px solid #ddd;
  681. background: white;
  682. color: #333;
  683. cursor: pointer;
  684. transition: all 0.3s ease;
  685. }
  686. .pagination .btn:hover {
  687. background: #f8f9fa;
  688. border-color: #667eea;
  689. }
  690. .pagination .btn:disabled {
  691. opacity: 0.5;
  692. cursor: not-allowed;
  693. }
  694. .page-info {
  695. color: #666;
  696. font-size: 14px;
  697. }
  698. /* Responsive design */
  699. @media (max-width: 768px) {
  700. .migration-header,
  701. .jobs-header {
  702. flex-direction: column;
  703. align-items: flex-start;
  704. gap: 15px;
  705. }
  706. .migration-controls,
  707. .jobs-controls {
  708. width: 100%;
  709. justify-content: center;
  710. }
  711. .table {
  712. font-size: 12px;
  713. }
  714. .table th,
  715. .table td {
  716. padding: 8px 12px;
  717. }
  718. .btn-group {
  719. flex-direction: column;
  720. }
  721. .add-job-form {
  722. max-width: 100%;
  723. }
  724. }