diff --git a/.github/ISSUE_TEMPLATE/add_localization.md b/.github/ISSUE_TEMPLATE/add_localization.md deleted file mode 100644 index 177cc2dfc..000000000 --- a/.github/ISSUE_TEMPLATE/add_localization.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: "\U0001F5FA Add new language" -about: Create a localization request -title: '' -labels: '' -assignees: '' - ---- - - - -**Missing language** - - -**Additional context** - diff --git a/.github/ISSUE_TEMPLATE/add_localization.yml b/.github/ISSUE_TEMPLATE/add_localization.yml new file mode 100644 index 000000000..8b2c27627 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/add_localization.yml @@ -0,0 +1,25 @@ +name: "\U0001F5FA Request a new language" +description: Your language isn't supported? Create a localization request here! +title: "[LOCALIZATION]: " +labels: localization +body: +- type: markdown + attributes: + value: | + 1. Please speak English, this is the language all maintainers can speak and write. + 2. Please ask questions or configuration/deploy problems in our Telegram group (https://t.me/PhotoboothGroup). + 3. Please take a moment to check that your language hasn't already been suggested. + 4. Request as translator on (https://crowdin.com/project/photobooth). +- type: textarea + id: description + attributes: + label: Request a language + placeholder: | + Please tell which language you are missing in Photobooth. + validations: + required: true +- type: textarea + id: additional + attributes: + label: Additional context + description: Add any other context here. diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index b91466299..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: "\U0001F41E Bug report" -about: Create a report to help us improve -title: '' -labels: 'bug' -assignees: '' - ---- - - - -**Describe the bug** - - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** - - -**Screenshots** - - -**Environment (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Photobooth** -- Did it work before? [yes/no] -- Which version of Photobooth are you using? - -**Additional context** - diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..1c25e2fc0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,86 @@ +name: "\U0001F41E Bug report" +description: Create a report to help us improve +title: "[BUG]: " +labels: bug +body: +- type: markdown + attributes: + value: | + 1. Please speak English, this is the language all maintainers can speak and write. + 2. Please ask questions or configuration/deploy problems in our Telegram group (https://t.me/PhotoboothGroup). + 3. Please take a moment to check that your bug hasn't already been reported. + 4. Make sure it's not mentioned in the [FAQ](https://github.com/andi34/photobooth/blob/wiki/FAQ.md). + 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report! + +- type: textarea + id: description + attributes: + label: Describe the bug + description: | + A clear and concise description of what the bug is. + validations: + required: true + +- type: textarea + id: reproduce + attributes: + label: Steps to reproduce the behavior + description: | + 1. Go to ... + 2. Click on .... + 3. Scroll down to .... + 4. See error + validations: + required: true + +- type: textarea + id: expection + attributes: + label: Expected behavior + placeholder: | + A clear and concise description of what you expected to happen + validations: + required: true + +- type: input + id: photobooth-ver + attributes: + label: Photobooth Version + description: Photobooth Version (or commit reference) your instance is running + validations: + required: true + +- type: input + id: browser-ver + attributes: + label: Browser and browser version + description: Browser and version of the browser you are accessing Photobooth from + +- type: input + id: os-ver + attributes: + label: Operating System + description: The operating system you are using to run Photobooth, e.g Raspberry Pi OS with desktop + + +- type: dropdown + id: workbefore + attributes: + label: Did it work before? + options: + - "Yes" + - "No" + validations: + required: true +- type: input + id: workbefore-description + attributes: + label: Latest working version + description: | + If it worked before, please tell the latest working version. + +- type: textarea + id: additional + attributes: + label: Additional context + description: Add any other context or screenshots about the bug here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index a0949f389..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: "\U0001F680 Feature request" -about: Suggest an idea for this project -title: '' -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** - - -**Describe the solution you'd like** - - -**Describe alternatives you've considered** - - -**Additional context** - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 000000000..62869d44a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,53 @@ +name: "\U0001F680 Feature request" +description: Suggest an idea for this project +title: "[FEATURE]: " +labels: enhancement +body: +- type: markdown + attributes: + value: | + 1. Please speak English, this is the language all maintainers can speak and write. + 2. Please ask questions or configuration/deploy problems in our Telegram group (https://t.me/PhotoboothGroup). + 3. Please take a moment to check that your feature hasn't already been suggested. + +- type: dropdown + id: problem-related + attributes: + label: Is your feature request related to a problem? + description: | + If so, please please describe in the Description field. + options: + - "Yes" + - "No" + validations: + required: true +- type: textarea + id: problem-description + attributes: + label: Description + description: | + A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. + +- type: textarea + id: description + attributes: + label: Describe the solution you'd like + placeholder: | + A clear and concise description of what you want to happen. + validations: + required: true + +- type: textarea + id: alternatives + attributes: + label: Describe alternatives you've considered + placeholder: | + A clear and concise description of any alternative solutions or features you've considered. + validations: + required: true + +- type: textarea + id: additional + attributes: + label: Additional context + description: Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..c0daaffd5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: Build + +on: + push: + branches: + - dev + pull_request: + branches: + - dev + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository and submodules + uses: actions/checkout@v2 + with: + submodules: true + - name: Use Node v12 + uses: actions/setup-node@v2 + with: + node-version: '12' + - name: Install modules + run: yarn install + - name: Build + run: yarn build + - name: Get git status + run: git status + - name: Pack zip + run: yarn pack:build + - name: Publish zip + uses: actions/upload-artifact@v2 + if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' + with: + name: photobooth + path: archives/photobooth-*.zip + buildmacos: + runs-on: macos-11 + steps: + - name: Checkout repository and submodules + uses: actions/checkout@v2 + with: + submodules: true + - name: Use Node v12 + uses: actions/setup-node@v2 + with: + node-version: '12' + - name: Install modules + run: yarn install + - name: Build + run: yarn build diff --git a/.github/workflows/gulp_sass.yml b/.github/workflows/gulp_sass.yml index 96c9f85fe..8f47ccf7a 100644 --- a/.github/workflows/gulp_sass.yml +++ b/.github/workflows/gulp_sass.yml @@ -4,14 +4,12 @@ on: push: branches: - dev - - stable2 - stable3 paths: - '**.scss' pull_request: branches: - dev - - stable2 - stable3 paths: - '**.scss' @@ -22,6 +20,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '12' - name: Install modules run: yarn install - name: Running gulp-sass diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4814c002a..21d33a648 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,14 +4,12 @@ on: push: branches: - dev - - stable2 - stable3 paths: - '**.js' pull_request: branches: - dev - - stable2 - stable3 paths: - '**.js' @@ -22,6 +20,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '12' - name: Install modules run: yarn install - name: Lint diff --git a/.gitignore b/.gitignore index f92976bc6..365a080b7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,10 +4,12 @@ config/* !config/config.inc.php data/ digicamcontrol/ +HEAD manual/faq.* node_modules/ package-lock.json -private/ +private/* +!private/README.md resources/css/* !resources/css/README.md resources/js/* @@ -23,4 +25,5 @@ vendor/simple-translator/ /.htaccess .htpasswd *.patch +.skip_welcome .vscode diff --git a/.gitmodules b/.gitmodules index 0af580df9..1004addb0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "vendor/Seriously"] path = vendor/Seriously url = https://github.com/brianchirls/Seriously.js +[submodule "vendor/phpqrcode"] + path = vendor/phpqrcode + url = https://github.com/andi34/phpqrcode diff --git a/.npmrc b/.npmrc index 5fca0d518..d84128b58 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ scripts-prepend-node-path=true +engine-strict=true diff --git a/LICENSE_NOTICE b/LICENSE_NOTICE new file mode 100644 index 000000000..529689f8a --- /dev/null +++ b/LICENSE_NOTICE @@ -0,0 +1,6 @@ +LICENSE NOTE + +Once build, Photobooth incorporates several parts and optimizations that are covered by a different license which could apply to Photobooth as well. + +All dependencies include their respective LICENSE files. + diff --git a/README.md b/README.md index 8e93ddc76..ae7ef8e95 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Photobooth v3 -A Photobooth web interface for Raspberry Pi and Windows. +A Photobooth web interface for Linux and Windows. -Photobooth was initially developped by Andre Rinas, you can find his source [here](https://github.com/andreknieriem/photobooth). +Photobooth was initially developped by Andre Rinas to use on a Raspberry Pi, you can find his source [here](https://github.com/andreknieriem/photobooth). **This is my personal Photobooth fork with a lot of extras and improvements.** _(The full changelog can be found inside [the Photobooth Wiki](https://github.com/andi34/photobooth/wiki/changelog).)_ @@ -107,14 +107,17 @@ If you're having trouble or questions please take a look at our [FAQ](https://github.com/andi34/photobooth/wiki#faq---frequently-asked-questions) before opening a new issue. -## :globe_with_meridians: Browser support - -[Click here](https://github.com/andi34/photobooth/wiki#browser-support) to find out if your Browser is supported. - ### :mag: Changelog Please take a look at the changelog in our [Photobooth Wiki](https://github.com/andi34/photobooth/wiki/changelog). +### :copyright: License + +Photobooth source is licensed under the MIT license. + +Once build, Photobooth incorporates several parts and optimizations that are covered by a different license which could apply to Photobooth as well. +All dependencies include their respective LICENSE files. + ### :tada: Donation If you like my work and like to keep me motivated you can buy me a coconut water: @@ -123,7 +126,9 @@ If you like my work and like to keep me motivated you can buy me a coconut water ### :mortar_board: Tutorial -[Raspberry Pi Weddingphotobooth (german)](https://www.andrerinas.de/tutorials/raspberry-pi-einen-dslr-weddingphotobooth-erstellen.html) +[Raspberry Pi Weddingphotobooth (german)](https://www.andrerinas.de/tutorials/raspberry-pi-einen-dslr-weddingphotobooth-erstellen.html) +[Raspberry Pi Fotobox für Hochzeiten und Geburtstage (German)](https://www.dennis-henss.de/2020/01/25/raspberry-pi-fotobox-fuer-hochzeiten-und-geburtstage) +[Raspberry Pi Photobooth in a classic vintage plate camera](https://florianmuller.com/raspberry-pi-photobooth-in-a-classic-vintage-plate-camera) ### :clap: Contributors and thanks to @@ -165,4 +170,5 @@ If you like my work and like to keep me motivated you can buy me a coconut water - [Christian Tarne](https://github.com/Metropo) - [DeNeD1](https://github.com/DeNeD1) - [DIY89](https://github.com/DIY89) - +- [mhellmeier](https://github.com/mhellmeier) +- [Uwe Pieper](https://github.com/up-87) diff --git a/admin/debugpanel.php b/admin/debugpanel.php index bb5878a33..cfc71f3c0 100644 --- a/admin/debugpanel.php +++ b/admin/debugpanel.php @@ -39,6 +39,9 @@ + + +
@@ -89,9 +92,10 @@ function html_src_indent($num) echo '