@experium/findy-form 1.1.457 → 1.2.1
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.
- package/{.travis.yml → .travis.old.yml} +1 -1
- package/Jenkinsfile +44 -0
- package/dist/404.html +22 -0
- package/dist/app.js +343 -0
- package/dist/index.html +30 -0
- package/lib/components/Fields.js +2 -2
- package/lib/components/Form.js +13 -2
- package/lib/components/formComponents/Captcha.js +8 -3
- package/lib/components/formComponents/File.js +20 -16
- package/lib/components/formComponents/HtmlOpdForm.js +92 -15
- package/lib/components/formComponents/PersonalDataAgreement.js +45 -28
- package/lib/constants/allowFileExtensions.js +2 -2
- package/lib/constants/translations.js +153 -117
- package/lib/styles/index.css +19 -0
- package/lib/utils/errors.js +14 -0
- package/lib/utils/validation.js +49 -9
- package/package.json +8 -9
- package/src/components/Fields.js +6 -2
- package/src/components/Form.js +7 -2
- package/src/components/formComponents/Captcha.js +4 -2
- package/src/components/formComponents/File.js +22 -22
- package/src/components/formComponents/HtmlOpdForm.js +128 -16
- package/src/components/formComponents/PersonalDataAgreement.js +72 -50
- package/src/constants/allowFileExtensions.js +2 -2
- package/src/constants/translations.js +123 -87
- package/src/styles/index.css +19 -0
- package/src/utils/errors.js +7 -0
- package/src/utils/validation.js +44 -10
- package/FETCH_HEAD +0 -0
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
skip_cleanup: true
|
|
17
17
|
edge: true
|
|
18
18
|
provider: script
|
|
19
|
-
script: "cp .npmrc.template $HOME/.npmrc && npm version 1.1
|
|
19
|
+
script: "cp .npmrc.template $HOME/.npmrc && npm version 1.1.$TRAVIS_BUILD_NUMBER && npm publish"
|
|
20
20
|
on:
|
|
21
21
|
branch: master
|
|
22
22
|
- stage: deploy gh pages
|
package/Jenkinsfile
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
scripts.discardOldJobBuilds('3')
|
|
2
|
+
scripts.killPreviousJobBuilds()
|
|
3
|
+
|
|
4
|
+
node {
|
|
5
|
+
scripts.tryFinally {
|
|
6
|
+
stage('Checkout') {
|
|
7
|
+
checkout scm
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
def branch = env.BRANCH_NAME
|
|
11
|
+
def isPR = branch ==~ /^PR-\d+$/
|
|
12
|
+
|
|
13
|
+
docker.image('node:14.15').inside('-e HOME=/tmp') {
|
|
14
|
+
stage('Install') {
|
|
15
|
+
sh 'yarn install'
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
stage('Build lib') {
|
|
19
|
+
sh 'yarn package'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
stage('Build ghpages') {
|
|
23
|
+
sh 'yarn build'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (!isPR) {
|
|
27
|
+
stage('Publish artifacts') {
|
|
28
|
+
step([$class: 'ArtifactArchiver', artifacts: 'dist/**/*', fingerprint: true])
|
|
29
|
+
step([$class: 'ArtifactArchiver', artifacts: 'lib/**/*', fingerprint: true])
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
stage('Publish npm') {
|
|
33
|
+
withNPM(npmrcConfig:'publishnpmrc') {
|
|
34
|
+
sh "npm --no-git-tag-version version 1.2.${env.BUILD_NUMBER} && npm publish"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// stage('Publish ghpage') {
|
|
39
|
+
// sh "yarn deploy-storybook"
|
|
40
|
+
// }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/dist/404.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>App</title>
|
|
6
|
+
<script type="text/javascript">
|
|
7
|
+
var segmentCount = 1;
|
|
8
|
+
|
|
9
|
+
var l = window.location;
|
|
10
|
+
l.replace(
|
|
11
|
+
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
|
|
12
|
+
l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
|
|
13
|
+
l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
|
|
14
|
+
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
|
|
15
|
+
l.hash
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
</script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|