16 Commits

Author SHA1 Message Date
bf24533cdd bump version number 2023-11-12 12:12:20 +01:00
0d8f3d3e0a small setup patches (spelling mistakes) 2023-11-12 12:09:27 +01:00
f6e4d3f8e3 add missing file 2023-11-12 11:07:58 +01:00
Janis Hutz
acae6ba9c0 Update README.md 2023-11-06 09:59:04 +01:00
Janis Hutz
1aafb0550a Merge pull request #4 from simplePCBuilding/dependabot/npm_and_yarn/src/webapp/setup/postcss-8.4.31
Bump postcss from 8.4.26 to 8.4.31 in /src/webapp/setup
2023-11-06 09:57:10 +01:00
Janis Hutz
811ab2727b Merge pull request #5 from simplePCBuilding/dependabot/npm_and_yarn/src/server/crypto-js-4.2.0
Bump crypto-js from 4.1.1 to 4.2.0 in /src/server
2023-11-06 09:54:48 +01:00
dependabot[bot]
7d61d084f1 Bump crypto-js from 4.1.1 to 4.2.0 in /src/server
Bumps [crypto-js](https://github.com/brix/crypto-js) from 4.1.1 to 4.2.0.
- [Commits](https://github.com/brix/crypto-js/compare/4.1.1...4.2.0)

---
updated-dependencies:
- dependency-name: crypto-js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 08:53:07 +00:00
dependabot[bot]
160eaaa0ce Bump postcss from 8.4.26 to 8.4.31 in /src/webapp/setup
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.26 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.26...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 08:52:54 +00:00
Janis Hutz
5ee5c3695d Create dependabot.yml 2023-11-06 09:51:24 +01:00
Janis Hutz
77de93f9c3 Merge pull request #3 from simplePCBuilding/simplePCBuilding-patch-1
Create SECURITY.md
2023-11-06 09:48:49 +01:00
Janis Hutz
cc4efce26d Create SECURITY.md 2023-11-06 09:48:00 +01:00
Janis Hutz
5fef565e4b Update notes.md 2023-10-31 07:36:07 +00:00
Janis Hutz
d683f4a520 Update notes.md 2023-10-31 07:35:41 +00:00
Janis Hutz
7ce024a768 Update notes.md
Add links to apps to add to website
2023-10-27 08:49:05 +00:00
0d8915930c fix backdrop of highlighting on website 2023-10-25 19:30:29 +02:00
d9ca5bd7fc fix small spelling mistake on website 2023-10-25 19:17:34 +02:00
18 changed files with 54 additions and 27 deletions

11
.github/dependabot.yml vendored Normal file
View 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"

View File

@@ -60,6 +60,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
View 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)

View File

@@ -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

View File

@@ -1,6 +1,6 @@
{
"name": "libreevent",
"version": "1.0.0",
"version": "1.0.1",
"description": "A free and open source event management solution",
"main": "/dist/app.js",
"scripts": {

View File

@@ -6,7 +6,7 @@
#
#
v="V1.0.0"
v="V1.0.1"
echo "
_ _ _ _

View File

@@ -15,7 +15,7 @@
"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",
@@ -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",

View File

@@ -1,6 +1,6 @@
{
"name": "libreevent",
"version": "1.0.0",
"version": "1.0.1",
"description": "Free & Open source event management solution",
"main": "app.js",
"directories": {
@@ -48,7 +48,7 @@
"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",

View File

@@ -73,7 +73,7 @@ saveSettings( {
'gcInterval': 300,
'ticketTimeout': 900,
'startPage': 'default',
'version': '1.0.0'
'version': '1.0.1'
} );
console.log( ' ==> Done!\n\n' );

View File

@@ -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' );

View File

@@ -1,6 +1,6 @@
{
"name": "libreevent",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"scripts": {
"dev": "vite --host",

View File

@@ -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",

View File

@@ -1,6 +1,6 @@
{
"name": "libreevent-setup",
"version": "0.0.0",
"version": "1.0.1",
"private": true,
"scripts": {
"dev": "vite",

View File

@@ -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>

View File

@@ -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 ];

View File

@@ -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>

View File

@@ -44,7 +44,7 @@
}
::selection {
background-color: var( --highlight-backdrop );
background-color: #7c8cec;
color: var( --secondary-color );
}