Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

Commit 7d38d2b

Browse files
authored
Merge pull request #2 from tony-griffin/main
Copy over view files and routes
2 parents c5d0d18 + 7206a8c commit 7d38d2b

154 files changed

Lines changed: 10459 additions & 2691 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ node_modules/
1818
/cypress/support
1919
/cypress/temp
2020
tmp/
21+
/__tests__/*

__tests__/spec/release-archive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const path = require('path')
66
const utils = require('./utils')
77

88
describe('release archive', () => {
9-
var archivePath
10-
var archiveFiles
9+
let archivePath
10+
let archiveFiles
1111

1212
beforeAll(() => {
1313
archivePath = utils.mkReleaseArchiveSync()

__tests__/spec/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path')
55

66
const repoDir = path.resolve(__dirname, '..', '..')
77

8-
var _releaseVersion
8+
let _releaseVersion
99

1010
/**
1111
* Returns the temporary directory path for this jest process
@@ -55,7 +55,7 @@ function mkReleaseArchiveSync ({ archiveType = 'zip', dir } = {}) {
5555
try {
5656
fs.accessSync(archive)
5757
} catch (err) {
58-
_mkReleaseArchiveSync({ archive: archive, prefix: name })
58+
_mkReleaseArchiveSync({ archive, prefix: name })
5959
}
6060

6161
return archive
1.68 KB
Loading

app/assets/javascripts/auto-store-data.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ $('body').on('submit', 'form', function (e) {
55
// all form data on the server, including checkboxes that are checked, then
66
// later unchecked
77

8-
var $checkboxes = $(this).find('input:checkbox')
8+
const $checkboxes = $(this).find('input:checkbox')
99

10-
var $inputs = []
11-
var names = {}
10+
const $inputs = []
11+
const names = {}
1212

1313
$checkboxes.each(function () {
14-
var $this = $(this)
14+
const $this = $(this)
1515

1616
if (!names[$this.attr('name')]) {
1717
names[$this.attr('name')] = true
18-
var $input = $('<input type="hidden">')
18+
const $input = $('<input type="hidden">')
1919
$input.attr('name', $this.attr('name'))
2020
$input.attr('value', '_unchecked')
2121
$inputs.push($input)

0 commit comments

Comments
 (0)