expressa 2.0.19 → 2.0.21

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 (81) hide show
  1. package/cypress/integration/custom_collections.js +4 -2
  2. package/cypress/support/commands.js +15 -0
  3. package/cypress/support/util.js +1 -1
  4. package/cypress.config.js +18 -0
  5. package/modules/admin/build/build.js +2 -1
  6. package/modules/admin/build/utils.js +2 -1
  7. package/modules/admin/build/webpack.base.conf.js +3 -3
  8. package/modules/admin/dist/css/{864.506917a4.css → 197.7a90435e.css} +1 -1
  9. package/modules/admin/dist/css/197.7a90435e.css.gz +0 -0
  10. package/modules/admin/dist/css/{699.d1f90954.css → 430.8c9b0482.css} +1 -1
  11. package/modules/admin/dist/css/430.8c9b0482.css.gz +0 -0
  12. package/modules/admin/dist/css/451.c6646d20.css.gz +0 -0
  13. package/modules/admin/dist/css/{899.506917a4.css → 566.7a90435e.css} +1 -1
  14. package/modules/admin/dist/css/566.7a90435e.css.gz +0 -0
  15. package/modules/admin/dist/css/569.f7d5c7d5.css.gz +0 -0
  16. package/modules/admin/dist/css/572.74d8e965.css.gz +0 -0
  17. package/modules/admin/dist/css/651.e946bda7.css.gz +0 -0
  18. package/modules/admin/dist/css/750.4086915d.css.gz +0 -0
  19. package/modules/admin/dist/css/950.1fd9d57c.css.gz +0 -0
  20. package/modules/admin/dist/css/app.eba5f5e2.css +592 -0
  21. package/modules/admin/dist/css/app.eba5f5e2.css.gz +0 -0
  22. package/modules/admin/dist/index.html +1 -1
  23. package/modules/admin/dist/static/js/{864.4f43847d.js → 197.e511d91e.js} +1 -1
  24. package/modules/admin/dist/static/js/197.e511d91e.js.gz +0 -0
  25. package/modules/admin/dist/static/js/{699.c7564884.js → 430.b3941f30.js} +1 -1
  26. package/modules/admin/dist/static/js/430.b3941f30.js.gz +0 -0
  27. package/modules/admin/dist/static/js/550.f27feb23.js +1 -0
  28. package/modules/admin/dist/static/js/550.f27feb23.js.gz +0 -0
  29. package/modules/admin/dist/static/js/569.0fecfbee.js +1 -0
  30. package/modules/admin/dist/static/js/569.0fecfbee.js.gz +0 -0
  31. package/modules/admin/dist/static/js/app.083328f8.js +2 -0
  32. package/modules/admin/dist/static/js/app.083328f8.js.gz +0 -0
  33. package/modules/admin/src/icons/index.js +1 -1
  34. package/modules/admin/src/utils/request.js +4 -5
  35. package/modules/admin/src/views/EditDocument.vue +20 -15
  36. package/modules/admin/src/views/ListDocuments2.vue +14 -9
  37. package/package.json +1 -1
  38. package/scripts/run_cypress_tests.sh +33 -3
  39. package/test/testserver.js +14 -1
  40. package/test/testutils.js +4 -4
  41. package/modules/admin/dist/164c6167c1f3c497c07c.woff +0 -1
  42. package/modules/admin/dist/42ac07abc8473600c41f.ttf +0 -1
  43. package/modules/admin/dist/86dccb18a7eb4be8ef1a.woff +0 -1
  44. package/modules/admin/dist/c45297c558e0318fc9c5.ttf +0 -1
  45. package/modules/admin/dist/c717c9930715e24fa12c.woff +0 -1
  46. package/modules/admin/dist/ca6f07ef23f24cc2738a.ttf +0 -1
  47. package/modules/admin/dist/css/269.f7d5c7d5.css.gz +0 -0
  48. package/modules/admin/dist/css/699.d1f90954.css.gz +0 -0
  49. package/modules/admin/dist/css/864.506917a4.css.gz +0 -0
  50. package/modules/admin/dist/css/899.506917a4.css.gz +0 -0
  51. package/modules/admin/dist/css/app.11cc6245.css +0 -39
  52. package/modules/admin/dist/css/app.11cc6245.css.gz +0 -0
  53. package/modules/admin/dist/css/app.2e1b0d79.css +0 -591
  54. package/modules/admin/dist/css/app.2e1b0d79.css.gz +0 -0
  55. package/modules/admin/dist/css/app.4d43d0fd.css +0 -592
  56. package/modules/admin/dist/css/app.4d43d0fd.css.gz +0 -0
  57. package/modules/admin/dist/css/app.abace109.css +0 -1
  58. package/modules/admin/dist/css/app.abace109.css.gz +0 -0
  59. package/modules/admin/dist/css/chunk-elementUI.67ad86d7.css +0 -1
  60. package/modules/admin/dist/css/chunk-elementUI.67ad86d7.css.gz +0 -0
  61. package/modules/admin/dist/css/chunk-elementUI.9e660bfd.css +0 -1
  62. package/modules/admin/dist/css/chunk-elementUI.9e660bfd.css.gz +0 -0
  63. package/modules/admin/dist/css/chunk-elementUI.c77cf142.css +0 -1
  64. package/modules/admin/dist/css/chunk-elementUI.c77cf142.css.gz +0 -0
  65. package/modules/admin/dist/css/chunk-elementUI.f1625b35.css +0 -1
  66. package/modules/admin/dist/css/chunk-elementUI.f1625b35.css.gz +0 -0
  67. package/modules/admin/dist/css/chunk-elementUI.f25dfb9b.css +0 -1
  68. package/modules/admin/dist/css/chunk-elementUI.f25dfb9b.css.gz +0 -0
  69. package/modules/admin/dist/css/chunk-libs.de0d8484.css +0 -551
  70. package/modules/admin/dist/css/chunk-libs.de0d8484.css.gz +0 -0
  71. package/modules/admin/dist/static/js/269.7245ceaf.js +0 -1
  72. package/modules/admin/dist/static/js/269.7245ceaf.js.gz +0 -0
  73. package/modules/admin/dist/static/js/637.26413baa.js +0 -1
  74. package/modules/admin/dist/static/js/637.26413baa.js.gz +0 -0
  75. package/modules/admin/dist/static/js/699.c7564884.js.gz +0 -0
  76. package/modules/admin/dist/static/js/864.4f43847d.js.gz +0 -0
  77. package/modules/admin/dist/static/js/app.981e71b3.js +0 -2
  78. package/modules/admin/dist/static/js/app.981e71b3.js.gz +0 -0
  79. /package/modules/admin/dist/css/{269.f7d5c7d5.css → 569.f7d5c7d5.css} +0 -0
  80. /package/modules/admin/dist/static/js/{app.981e71b3.js.LICENSE.txt → app.083328f8.js.LICENSE.txt} +0 -0
  81. /package/modules/admin/dist/static/js/{app.981e71b3.js.LICENSE.txt.gz → app.083328f8.js.LICENSE.txt.gz} +0 -0
@@ -13,9 +13,11 @@ describe('Custom Collections', function() {
13
13
  cy.visit('/')
14
14
  cy.get('.hamburger-container').click();
15
15
  cy.wait(100)
16
- cy.get('span').contains('Collection').click();
16
+ cy.get('span').contains('Data').click();
17
+ cy.wait(1000)
18
+ cy.get('.is-opened span').contains('Collection').click();
17
19
 
18
- cy.get('.btn-primary').click();
20
+ cy.get('.btn-primary').contains('Add').click();
19
21
  let id = `coll-${randomId()}`;
20
22
  cy.fillValue('_id', id)
21
23
 
@@ -24,6 +24,21 @@
24
24
  // -- This will overwrite an existing command --
25
25
  // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
26
26
 
27
+ Cypress.Commands.overwrite('server', () => {
28
+ // no-op polyfill for deprecated cy.server
29
+ })
30
+
31
+ Cypress.Commands.overwrite('route', (originalFn, arg1, arg2, arg3) => {
32
+ // polyfill cy.route to cy.intercept for Cypress >= 10
33
+ if (typeof arg2 === 'undefined' && typeof arg3 === 'undefined') {
34
+ return cy.intercept(arg1)
35
+ }
36
+ if (typeof arg3 === 'undefined') {
37
+ return cy.intercept(arg1, arg2)
38
+ }
39
+ return cy.intercept(arg1, arg2, arg3)
40
+ })
41
+
27
42
  Cypress.Commands.add('randomId', (length) => {
28
43
  var text = "";
29
44
  var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
@@ -1,4 +1,4 @@
1
- exports.randomId = function(length) {
1
+ export function randomId(length) {
2
2
  var text = "";
3
3
  var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
4
 
@@ -0,0 +1,18 @@
1
+ // Configure Cypress v10+ while preserving legacy folder structure
2
+ // https://docs.cypress.io/guides/references/configuration
3
+
4
+ const { defineConfig } = require('cypress')
5
+
6
+ module.exports = defineConfig({
7
+ e2e: {
8
+ // Keep using the legacy integration tests directory
9
+ specPattern: 'cypress/integration/**/*.js',
10
+ supportFile: 'cypress/support/index.js',
11
+ baseUrl: 'http://localhost:3001/admin',
12
+ setupNodeEvents(on, config) {
13
+ // no plugins yet
14
+ return config
15
+ }
16
+ },
17
+ video: false
18
+ })
@@ -14,7 +14,8 @@ const webpackConfig = require('./webpack.prod.conf')
14
14
  const spinner = ora('building for production...')
15
15
  spinner.start()
16
16
 
17
- rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
17
+ // Clean the entire dist directory to ensure no stale top-level hashed files linger
18
+ rm(path.join(config.build.assetsRoot), err => {
18
19
  if (err) throw err
19
20
  webpack(webpackConfig, (err, stats) => {
20
21
  spinner.stop()
@@ -19,7 +19,8 @@ exports.cssLoaders = function(options) {
19
19
  const cssLoader = {
20
20
  loader: 'css-loader',
21
21
  options: {
22
- sourceMap: options.sourceMap
22
+ sourceMap: options.sourceMap,
23
+ esModule: false
23
24
  }
24
25
  }
25
26
 
@@ -84,10 +84,10 @@ module.exports = {
84
84
  },
85
85
  {
86
86
  test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
87
- loader: 'url-loader',
87
+ loader: 'file-loader',
88
88
  options: {
89
- limit: 10000,
90
- name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
89
+ name: utils.assetsPath('fonts/[name].[hash:7].[ext]'),
90
+ esModule: false
91
91
  }
92
92
  },
93
93
  {
@@ -1,5 +1,5 @@
1
1
 
2
- .el-table[data-v-3076ddee] th {
2
+ .el-table[data-v-4b9ae5da] th {
3
3
  background-color: #343a40 !important;
4
4
  border-color: #454d55;
5
5
  color: #fff;
@@ -1,5 +1,5 @@
1
1
 
2
- .el-table[data-v-3076ddee] th {
2
+ .el-table[data-v-4b9ae5da] th {
3
3
  background-color: #343a40 !important;
4
4
  border-color: #454d55;
5
5
  color: #fff;
@@ -1,5 +1,5 @@
1
1
 
2
- .el-table[data-v-3076ddee] th {
2
+ .el-table[data-v-4b9ae5da] th {
3
3
  background-color: #343a40 !important;
4
4
  border-color: #454d55;
5
5
  color: #fff;