mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
Compare commits
34 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a5407920b | ||
| 45a38cb36b | |||
|
|
961fa5fc80 | ||
|
|
09633132e0 | ||
| c3e1411bfe | |||
|
|
35c4e89c9e | ||
|
|
359fca424c | ||
|
|
6846c187c3 | ||
|
|
0b0ddda4b9 | ||
|
|
0f5c652bd4 | ||
|
|
7b31b209e7 | ||
|
|
7243592d03 | ||
|
|
92d6065e01 | ||
| 3916aefe6b | |||
|
|
3ec9788163 | ||
| ddfb2ed5b9 | |||
| 6a181b0139 | |||
| bf24533cdd | |||
| 0d8f3d3e0a | |||
| f6e4d3f8e3 | |||
|
|
4e46f2dc3a | ||
|
|
acae6ba9c0 | ||
|
|
1aafb0550a | ||
|
|
811ab2727b | ||
|
|
7d61d084f1 | ||
|
|
160eaaa0ce | ||
|
|
5ee5c3695d | ||
|
|
77de93f9c3 | ||
|
|
cc4efce26d | ||
|
|
5fef565e4b | ||
|
|
d683f4a520 | ||
|
|
7ce024a768 | ||
| 0d8915930c | |||
| d9ca5bd7fc |
11
.github/dependabot.yml
vendored
Normal file
11
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm" # See documentation for possible values
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
@@ -39,6 +39,9 @@ Alternatively, you may download the project directly from GitHub (by cloning it
|
||||
- any CPU from the last 10 years
|
||||
- Any operating system that can run node.js
|
||||
|
||||
# Roadmap
|
||||
There are a few features planned for libreevent. Please discuss other ideas in the issue I opened specifically for this. (see #12)
|
||||
|
||||
# Contributing
|
||||
If you want to contribute to this project, please read more [here](https://libreevent.janishutz.com/docs/contributing). Until the end of October 2023, no contributions can be accepted into master.
|
||||
|
||||
@@ -60,6 +63,6 @@ If you like this project and it helped you save money, please consider donating
|
||||
|
||||
You may notice some additional folders appearing after running
|
||||
```
|
||||
npm run package
|
||||
./package.sh
|
||||
```
|
||||
This is to shrink the repository size. Distribution ready files can be found in the releases or on our [website](https://libreevent.janishutz.com/download).
|
||||
|
||||
13
SECURITY.md
Normal file
13
SECURITY.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
libreevent gets security updates as part of regular software updates. Since there is only one major version currently, only this one gets updates
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 1.0.x | :white_check_mark: |
|
||||
| 0.x.x | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
Please open an issue if you have discovered a security problem or send a mail to [development@janishutz.com](mailto:development@janishutz.com)
|
||||
BIN
assets/launchTrailerThumbnail.png
Normal file
BIN
assets/launchTrailerThumbnail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 355 KiB |
BIN
assets/launchTrailerThumbnail.xcf
Normal file
BIN
assets/launchTrailerThumbnail.xcf
Normal file
Binary file not shown.
10
notes.md
10
notes.md
@@ -3,17 +3,17 @@ For deployment create the following items:
|
||||
- libreevent-[VERSION HERE]-npm.zip (contains the node_modules folder from src/server)
|
||||
- libreevent-[VERSION HERE]-prebuilt.zip (contains a ready-to-use compiled version of libreevent (main download))
|
||||
- libreevent-[VERSION HERE]-full-icu.zip (contains the package.json file which can be used if full-icu is not enabled in Node.js)
|
||||
-> This can be achieved by running the bash script `package.sh` in the root folder of the project
|
||||
|
||||
|
||||
# Links to apps
|
||||
- https://play.google.com/store/apps/details?id=com.janishutz.libreevent
|
||||
- https://apps.apple.com/ch/app/libreevent-entry-control/id6464594870?l=en-GB
|
||||
|
||||
|
||||
# PLANS
|
||||
- Website: Add ids to titles
|
||||
|
||||
|
||||
- Update files to import when deploying for included json files instead of secret.json files
|
||||
- Also remove /test/ routes
|
||||
|
||||
|
||||
- FUTURE: Implement Permission system
|
||||
- FUTURE: Add Admin profile (page to change account settings per person like changing pwd)
|
||||
- FUTURE: add multi-language support
|
||||
|
||||
13
package-lock.json
generated
Normal file
13
package-lock.json
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "libreevent",
|
||||
"version": "1.0.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "libreevent",
|
||||
"version": "1.0.1",
|
||||
"license": "GPL-3.0-or-later"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "A free and open source event management solution",
|
||||
"main": "/dist/app.js",
|
||||
"scripts": {
|
||||
|
||||
15
package.sh
15
package.sh
@@ -6,7 +6,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
v="V1.0.0"
|
||||
v="V1.0.3"
|
||||
|
||||
echo "
|
||||
_ _ _ _
|
||||
@@ -36,6 +36,10 @@ sleep 0.5
|
||||
|
||||
cd src/webapp/setup
|
||||
npm i
|
||||
npm audit fix
|
||||
|
||||
sleep 1
|
||||
|
||||
npm run build
|
||||
|
||||
echo "
|
||||
@@ -50,6 +54,10 @@ cd ../main
|
||||
|
||||
|
||||
npm i
|
||||
npm audit fix
|
||||
|
||||
sleep 1
|
||||
|
||||
npm run build
|
||||
|
||||
echo "
|
||||
@@ -120,6 +128,11 @@ sleep 1
|
||||
|
||||
cd src/server
|
||||
npm i
|
||||
|
||||
npm audit fix
|
||||
|
||||
sleep 1
|
||||
|
||||
cd ../../
|
||||
zip -9r libreevent-$v-npm.zip src/server/node_modules
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ app.use( expressSession( {
|
||||
saveUninitialized: true,
|
||||
cookie: {
|
||||
sameSite: 'none',
|
||||
httpOnly: false,
|
||||
httpOnly: true,
|
||||
secure: false,
|
||||
}
|
||||
} ) );
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -13,5 +13,5 @@
|
||||
"gcInterval":300,
|
||||
"ticketTimeout":900,
|
||||
"startPage":"default",
|
||||
"version":"1.0.0"
|
||||
"version":"1.0.1"
|
||||
}
|
||||
34
src/server/package-lock.json
generated
34
src/server/package-lock.json
generated
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@pdfme/generator": "^1.2.6",
|
||||
"@seald-io/nedb": "^4.0.2",
|
||||
"axios": "^1.4.0",
|
||||
"axios": "^1.6.0",
|
||||
"bcrypt": "^5.0.1",
|
||||
"body-parser": "^1.20.2",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"crypto-js": "^4.1.1",
|
||||
"crypto-js": "^4.2.0",
|
||||
"express": "^4.18.2",
|
||||
"express-session": "^1.17.3",
|
||||
"html-to-text": "^9.0.5",
|
||||
@@ -464,11 +464,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
|
||||
"integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
|
||||
"version": "1.6.7",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz",
|
||||
"integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.0",
|
||||
"follow-redirects": "^1.15.4",
|
||||
"form-data": "^4.0.0",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
@@ -819,9 +819,9 @@
|
||||
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
|
||||
},
|
||||
"node_modules/crypto-js": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
|
||||
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
|
||||
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
|
||||
},
|
||||
"node_modules/css-b64-images": {
|
||||
"version": "0.2.5",
|
||||
@@ -1234,9 +1234,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.15.2",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
||||
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
|
||||
"version": "1.15.5",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
|
||||
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
@@ -2026,9 +2026,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/nodemailer": {
|
||||
"version": "6.9.3",
|
||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.3.tgz",
|
||||
"integrity": "sha512-fy9v3NgTzBngrMFkDsKEj0r02U7jm6XfC3b52eoNV+GCrGj+s8pt5OqhiJdWKuw51zCTdiNR/IUD1z33LIIGpg==",
|
||||
"version": "6.9.11",
|
||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.11.tgz",
|
||||
"integrity": "sha512-UiAkgiERuG94kl/3bKfE8o10epvDnl0vokNEtZDPTq9BWzIl6EFT9336SbIT4oaTBD8NmmUTLsQyXHV82eXSWg==",
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Free & Open source event management solution",
|
||||
"main": "app.js",
|
||||
"directories": {
|
||||
@@ -44,11 +44,11 @@
|
||||
"dependencies": {
|
||||
"@pdfme/generator": "^1.2.6",
|
||||
"@seald-io/nedb": "^4.0.2",
|
||||
"axios": "^1.4.0",
|
||||
"axios": "^1.6.0",
|
||||
"bcrypt": "^5.0.1",
|
||||
"body-parser": "^1.20.2",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"crypto-js": "^4.1.1",
|
||||
"crypto-js": "^4.2.0",
|
||||
"express": "^4.18.2",
|
||||
"express-session": "^1.17.3",
|
||||
"html-to-text": "^9.0.5",
|
||||
|
||||
@@ -73,7 +73,7 @@ saveSettings( {
|
||||
'gcInterval': 300,
|
||||
'ticketTimeout': 900,
|
||||
'startPage': 'default',
|
||||
'version': '1.0.0'
|
||||
'version': '1.0.1'
|
||||
} );
|
||||
|
||||
console.log( ' ==> Done!\n\n' );
|
||||
@@ -54,6 +54,7 @@ module.exports = ( app, settings ) => {
|
||||
}
|
||||
let updatedSettings = settings;
|
||||
updatedSettings[ 'name' ] = req.body.websiteName;
|
||||
updatedSettings[ 'yourDomain' ] = req.body.yourDomain;
|
||||
updatedSettings[ 'mailSender' ] = req.body.mailDisplay;
|
||||
db.saveSettings( updatedSettings );
|
||||
res.send( 'ok' );
|
||||
|
||||
18
src/webapp/main/package-lock.json
generated
18
src/webapp/main/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"dependencies": {
|
||||
"@pdfme/generator": "^1.2.3",
|
||||
"@pdfme/ui": "^1.2.3",
|
||||
@@ -20,7 +20,7 @@
|
||||
"@vitejs/plugin-vue": "^1.10.2",
|
||||
"eslint": "^8.39.0",
|
||||
"eslint-plugin-vue": "^9.17.0",
|
||||
"vite": "^2.5.4"
|
||||
"vite": "^2.9.17"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
@@ -2468,9 +2468,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "2.9.16",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.9.16.tgz",
|
||||
"integrity": "sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==",
|
||||
"version": "2.9.17",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.9.17.tgz",
|
||||
"integrity": "sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.14.27",
|
||||
@@ -4381,9 +4381,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"vite": {
|
||||
"version": "2.9.16",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.9.16.tgz",
|
||||
"integrity": "sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==",
|
||||
"version": "2.9.17",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.9.17.tgz",
|
||||
"integrity": "sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esbuild": "^0.14.27",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libreevent",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
@@ -19,7 +19,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^1.10.2",
|
||||
"vite": "^2.5.4",
|
||||
"vite": "^2.9.17",
|
||||
"eslint": "^8.39.0",
|
||||
"eslint-plugin-vue": "^9.17.0"
|
||||
}
|
||||
|
||||
34
src/webapp/setup/package-lock.json
generated
34
src/webapp/setup/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "libreevent-setup",
|
||||
"version": "0.0.0",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "libreevent-setup",
|
||||
"version": "0.0.0",
|
||||
"version": "1.0.2",
|
||||
"dependencies": {
|
||||
"pinia": "^2.1.3",
|
||||
"vue": "^3.3.4",
|
||||
@@ -16,7 +16,7 @@
|
||||
"@vitejs/plugin-vue": "^4.2.3",
|
||||
"eslint": "^8.39.0",
|
||||
"eslint-plugin-vue": "^9.11.0",
|
||||
"vite": "^4.3.9"
|
||||
"vite": "^4.5.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
@@ -1141,9 +1141,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/fsevents": {
|
||||
"version": "2.3.2",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
||||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
||||
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"optional": true,
|
||||
@@ -1593,9 +1593,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/postcss": {
|
||||
"version": "8.4.26",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.26.tgz",
|
||||
"integrity": "sha512-jrXHFF8iTloAenySjM/ob3gSj7pCu0Ji49hnjqzsgSRa50hkWCKD0HQ+gMNJkW38jBI68MpAAg7ZWwHwX8NMMw==",
|
||||
"version": "8.4.31",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
|
||||
"integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
@@ -1705,9 +1705,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/rollup": {
|
||||
"version": "3.26.3",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.26.3.tgz",
|
||||
"integrity": "sha512-7Tin0C8l86TkpcMtXvQu6saWH93nhG3dGQ1/+l5V2TDMceTxO7kDiK6GzbfLWNNxqJXm591PcEZUozZm51ogwQ==",
|
||||
"version": "3.29.4",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz",
|
||||
"integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"rollup": "dist/bin/rollup"
|
||||
@@ -1869,14 +1869,14 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "4.4.4",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.4.4.tgz",
|
||||
"integrity": "sha512-4mvsTxjkveWrKDJI70QmelfVqTm+ihFAb6+xf4sjEU2TmUCTlVX87tmg/QooPEMQb/lM9qGHT99ebqPziEd3wg==",
|
||||
"version": "4.5.2",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz",
|
||||
"integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.18.10",
|
||||
"postcss": "^8.4.25",
|
||||
"rollup": "^3.25.2"
|
||||
"postcss": "^8.4.27",
|
||||
"rollup": "^3.27.1"
|
||||
},
|
||||
"bin": {
|
||||
"vite": "bin/vite.js"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libreevent-setup",
|
||||
"version": "0.0.0",
|
||||
"version": "1.0.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -17,6 +17,6 @@
|
||||
"@vitejs/plugin-vue": "^4.2.3",
|
||||
"eslint": "^8.39.0",
|
||||
"eslint-plugin-vue": "^9.11.0",
|
||||
"vite": "^4.3.9"
|
||||
"vite": "^4.5.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
<h2>General information</h2>
|
||||
<label for="name">Name of the website</label><br>
|
||||
<input type="text" name="name" id="name" v-model="formData.websiteName"><br>
|
||||
<label for="name">URL of the website</label><br>
|
||||
<input type="text" name="domain" id="domain" v-model="formData.yourDomain"><br>
|
||||
|
||||
|
||||
<h2>Database</h2>
|
||||
@@ -108,7 +110,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
this.collectUrl();
|
||||
if ( this.formData.dbType === 'mysql' ) {
|
||||
if ( !this.formData.db.port || !this.formData.db.host || !this.formData.db.database || !this.formData.db.user || !this.formData.db.password ) {
|
||||
this.$refs.notification.createNotification( 'Database settings are not complete!', 5, 'error', 'normal' );
|
||||
@@ -149,7 +150,7 @@ export default {
|
||||
this.$router.push( '/setup/root' );
|
||||
},
|
||||
collectUrl() {
|
||||
this.formData.yourDomain = location.protocol + '//' + location.host;
|
||||
this.formData.yourDomain = location.protocol + '//' + location.host + ( location.port ? ':' + location.port : '' );
|
||||
this.formData.db.host = location.hostname;
|
||||
}
|
||||
},
|
||||
@@ -157,6 +158,7 @@ export default {
|
||||
if ( sessionStorage.getItem( 'basics' ) ) {
|
||||
this.formData = JSON.parse( sessionStorage.getItem( 'basics' ) );
|
||||
}
|
||||
this.collectUrl();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -124,15 +124,14 @@ export default {
|
||||
let requirementsCount = { 'special': 0, 'numbers': 0, 'lower': 0, 'upper': 0, 'incorrect': '' };
|
||||
const pw = this.formData.password;
|
||||
for ( let l in pw ) {
|
||||
console.log( pw[ l ] );
|
||||
if ( /[a-z]/.test( pw[ l ] ) ) {
|
||||
requirementsCount[ 'lower' ] += 1;
|
||||
} else if ( /[A-Z]/.test( pw[ l ] ) ) {
|
||||
requirementsCount[ 'upper' ] += 1;
|
||||
} else if ( lookup.includes( pw[ l ] ) ) {
|
||||
requirementsCount[ 'special' ] += 1;
|
||||
} else if ( !isNaN( pw[ l ] * 1 ) ) {
|
||||
requirementsCount[ 'number' ] += 1;
|
||||
} else if ( !isNaN( pw[ l ] ) ) {
|
||||
requirementsCount[ 'numbers' ] += 1;
|
||||
} else {
|
||||
console.log( 'incorrect letter' );
|
||||
requirementsCount[ 'incorrect' ] = pw[ l ];
|
||||
|
||||
2
website/dist/download/thanks/index.html
vendored
2
website/dist/download/thanks/index.html
vendored
@@ -33,7 +33,7 @@
|
||||
<h1>Thank you for downloading <i>libre</i>ǝvent</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>If the download didn't start automatically, please click click <a href="https://github.com/simplePCBuilding/libreevent/releases/latest">here</a> and try from there</p>
|
||||
<p>If the download didn't start automatically, please click <a href="https://github.com/simplePCBuilding/libreevent/releases/latest">here</a> and try from there</p>
|
||||
<h3>Where to go from here?</h3>
|
||||
<ul>
|
||||
<li>Deploy libreevent on a webserver: <a href="/docs/setup/installation">Guide</a></li>
|
||||
|
||||
2
website/dist/templates/main.css
vendored
2
website/dist/templates/main.css
vendored
@@ -44,7 +44,7 @@
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: var( --highlight-backdrop );
|
||||
background-color: #7c8cec;
|
||||
color: var( --secondary-color );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user