From 3943e684606e9c61b37f67f05cff78386fcbb6c1 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Tue, 27 Feb 2024 14:51:32 +0000 Subject: [PATCH] .gitignore upgedated --- .devcontainer/Dockerfile | 33 -------- .devcontainer/devcontainer.json | 24 ------ .editorconfig | 14 ---- .gitignore | 10 +++ .jshintrc | 59 -------------- .markdownlint.json | 5 -- .prettierrc | 13 --- .vscode/extensions.json | 7 -- .vscode/tasks.json | 25 ------ .vscode/verua-snippets.code-snippets | 84 ------------------- netlify.toml | 7 -- public/php/ajaxmail.php | 109 ------------------------- public/php/mail.php | 47 ----------- public/php/message.php | 117 --------------------------- theme.toml | 34 ++------ vercel-build.sh | 43 ---------- vercel.json | 21 ----- 17 files changed, 15 insertions(+), 637 deletions(-) delete mode 100755 .devcontainer/Dockerfile delete mode 100755 .devcontainer/devcontainer.json delete mode 100755 .editorconfig delete mode 100644 .jshintrc delete mode 100755 .markdownlint.json delete mode 100755 .prettierrc delete mode 100644 .vscode/extensions.json delete mode 100644 .vscode/tasks.json delete mode 100644 .vscode/verua-snippets.code-snippets delete mode 100755 netlify.toml delete mode 100644 public/php/ajaxmail.php delete mode 100644 public/php/mail.php delete mode 100644 public/php/message.php delete mode 100755 vercel-build.sh delete mode 100755 vercel.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100755 index fbcd8c8..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -# Update the arg in docker-compose.yml or devcontainer.json to switch arg versions -ARG NODE_VERSION=18 - -# main image -FROM mcr.microsoft.com/devcontainers/javascript-node:${NODE_VERSION} - -# Update the arg in docker-compose.yml or devcontainer.json to switch arg versions -ARG GO_VERSION=latest -ARG HUGO_VERSION=latest - -# Download necessary tools -RUN apt-get update && apt-get install -y \ - ca-certificates openssl git curl && \ - rm -rf /var/lib/apt/lists/* && \ - # set architecture - case $(uname -m) in \ - aarch64) \ - export ARCH=arm64 ;; \ - *) \ - export ARCH=amd64 ;; \ - esac && \ - # install Hugo - wget -O hugo_extended_${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${ARCH}.tar.gz && \ - tar xf hugo_extended_${HUGO_VERSION}.tar.gz && \ - mv hugo /usr/bin/hugo && \ - rm hugo_extended_${HUGO_VERSION}.tar.gz && \ - # install Go - wget -O go${GO_VERSION}.linux-${ARCH}.tar.gz https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz && \ - tar -C /usr/local -xzf go${GO_VERSION}.linux-${ARCH}.tar.gz && \ - rm go${GO_VERSION}.linux-${ARCH}.tar.gz - -# Export Go path -ENV PATH=$PATH:/usr/local/go/bin \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100755 index e30c83d..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "Hugo", - "build": { - "dockerfile": "Dockerfile", - "args": { - "NODE_VERSION": "20", - "GO_VERSION": "1.21.4", - "HUGO_VERSION": "0.120.4" - } - }, - "customizations": { - "vscode": { - "settings": {}, - "extensions": [ - "bradlc.vscode-tailwindcss", - "budparr.language-hugo-vscode", - "tamasfe.even-better-toml" - ] - } - }, - "remoteUser": "node", - "postCreateCommand": "npm install && npm run dev:example", - "forwardPorts": [1313] -} diff --git a/.editorconfig b/.editorconfig deleted file mode 100755 index 0a6cf5e..0000000 --- a/.editorconfig +++ /dev/null @@ -1,14 +0,0 @@ -; https://editorconfig.org - -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index 4b1dc5b..a408898 100755 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,16 @@ jsconfig.json hugo_stats.json go.sum yarn.lock +.devcontainer +.vscode +.editorconfig +.jshintrc +.markdownlint.json +.prettierrc +netlify.toml +vercel.json +vercel-build.sh + # don't ignore public/php !public/php \ No newline at end of file diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 873eef9..0000000 --- a/.jshintrc +++ /dev/null @@ -1,59 +0,0 @@ -{ - "maxerr": 50, - "bitwise": true, - "camelcase": false, - "curly": true, - "eqeqeq": true, - "forin": true, - "freeze": true, - "immed": true, - "indent": 2, - "latedef": true, - "newcap": false, - "noarg": true, - "noempty": true, - "nonbsp": true, - "nonew": true, - "plusplus": false, - "undef": true, - "unused": false, - "strict": true, - "maxparams": false, - "maxdepth": 4, - "maxstatements": false, - "maxcomplexity": false, - "maxlen": 400, - "browser": true, - "devel": true, - "asi": false, - "boss": false, - "debug": false, - "eqnull": false, - "es3": false, - "es5": false, - "esversion": 12, - "moz": false, - "evil": true, - "expr": true, - "funcscope": false, - "globalstrict": false, - "iterator": false, - "lastsemic": false, - "laxbreak": false, - "laxcomma": false, - "loopfunc": true, - "multistr": true, - "noyield": false, - "notypeof": false, - "proto": false, - "scripturl": false, - "shadow": false, - "sub": false, - "supernew": false, - "validthis": false, - "globals": { - "jQuery": false, - "google": false, - "$": false - } -} diff --git a/.markdownlint.json b/.markdownlint.json deleted file mode 100755 index 7d41e3f..0000000 --- a/.markdownlint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "MD033": false, - "MD034": false, - "MD013": false -} diff --git a/.prettierrc b/.prettierrc deleted file mode 100755 index ee30508..0000000 --- a/.prettierrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "plugins": ["prettier-plugin-go-template"], - "overrides": [ - { - "files": ["*.html"], - "options": { - "parser": "go-template", - "goTemplateBracketSpacing": true, - "bracketSameLine": true - } - } - ] -} diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 344f03f..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "bradlc.vscode-tailwindcss", - "budparr.language-hugo-vscode", - "tamasfe.even-better-toml" - ] -} diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 8e6b33b..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - "version": "2.0.0", - "tasks": [ - { - "label": "Development", - "type": "shell", - "command": "yarn dev:example", - "isBackground": true, - "group": { - "kind": "test", - "isDefault": true - } - }, - { - "label": "Build", - "type": "shell", - "command": "yarn build:example", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -} diff --git a/.vscode/verua-snippets.code-snippets b/.vscode/verua-snippets.code-snippets deleted file mode 100644 index 405d322..0000000 --- a/.vscode/verua-snippets.code-snippets +++ /dev/null @@ -1,84 +0,0 @@ -{ - // Place your verua.dev-1.andreashnida.de workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and - // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope - // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is - // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: - // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. - // Placeholders with the same ids are connected. - // Example: - // "Print to console": { - // "scope": "javascript,typescript", - // "prefix": "log", - // "body": [ - // "console.log('$1');", - // "$2" - // ], - // "description": "Log output to console" - // } - "Insert Shortcode Columns": { - "scope": "markdown, md", - "prefix": "columns", - "body": [ - "{{% columns %}}", - " $1", - "{{% /columns %}}", - ], - "description": "Insert Shortcode Columns" - }, - "Insert Shortcode Slider": { - "scope": "markdown, md", - "prefix": "slider", - "body": [ - "{{% veruaslider %}}", - "{{% slide image=\"$1\" ${2:title=\"$4 \"} ${3:title=\"true \"} %}}", - "{{% /veruaslider %}}", - ], - "description": "Insert Shortcode Slider" - }, - "Insert Shortcode AclignCenter": { - "scope": "markdown, md", - "prefix": "AlignCenter", - "body": [ - "{{% aligncenter %}}", - "$1", - "{{% /aligncenter %}}", - ], - "description": "Insert Shortcode AlignCenter" - }, - "Insert Shortcode Section": { - "scope": "markdown, md", - "prefix": "section", - "body": [ - "{{% section %}}", - "$1", - "{{% /section %}}", - ], - "description": "Insert Shortcode Section" - }, - "Insert Shortcode card": { - "scope": "markdown, md", - "prefix": "card", - "body": [ - "{{% card %}}", - "$1", - "{{% /card %}}", - ], - "description": "Insert Shortcode Card" - }, - "Insert Shortcode icon": { - "scope": "markdown, md", - "prefix": "icon", - "body": [ - "{{% icon name=\"$1\" %}}", - ], - "description": "Insert Shortcode Icon" - }, - "Insert Shortcode Button": { - "scope": "markdown, md", - "prefix": "Button", - "body": [ - "{{< button label=\"$1\" link=\"/\" style=\"solid\" >}}", - ], - "description": "Insert Shortcode Button" - }, -} diff --git a/netlify.toml b/netlify.toml deleted file mode 100755 index 2418850..0000000 --- a/netlify.toml +++ /dev/null @@ -1,7 +0,0 @@ -[build] -publish = "public" -command = "yarn project-setup; yarn build" - -[build.environment] -HUGO_VERSION = "0.121.2" -GO_VERSION = "1.20.5" diff --git a/public/php/ajaxmail.php b/public/php/ajaxmail.php deleted file mode 100644 index 00d7ef9..0000000 --- a/public/php/ajaxmail.php +++ /dev/null @@ -1,109 +0,0 @@ -SMTPDebug = SMTP::DEBUG_SERVER; // Enable this for detailed debugging - $mail->isSMTP(); // Use SMTP - $mail->Host = 'sslout.de'; // Set SMTP server - $mail->SMTPAuth = true; // Enable SMTP authentication - $mail->Username = 'ah@mediendesign-hnida.de'; // SMTP username - $mail->Password = 'jrd9h7RnVjf/'; // SMTP password - $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable encryption - $mail->Port = 465; // TCP port for the connection - - // Recipients - $mail->setFrom($email, $name); // Sender address - $mail->addAddress('ah@mediendesign-hnida.de', 'Andreas Hnida'); // Add recipient - $mail->addReplyTo($email, $name); // Set reply address - $mail->addBCC('ah@mediendesign-hnida.de'); // Add bounce email address as BCC - - // Content - $mail->isHTML(true); // Email in HTML format - $mail->CharSet = 'UTF-8'; - $encodedSubject = mb_encode_mimeheader($subject, "UTF-8", "Q"); - $mail->Subject = $encodedSubject; - $mail->Body = nl2br(htmlspecialchars($message)); - $mail->AltBody = htmlspecialchars($message); - - // Send email - if ($mail->send()) { - // Success response - echo json_encode(['success' => true, 'message' => 'Nachricht wurde gesendet.']); - http_response_code(200); - - // Send a second email to the customer - $customerEmail = $email; - $customerSubject = 'Danke für Ihre Bestellung - Verua RaBe Websolutions'; - $encodedSubject = mb_encode_mimeheader($customerSubject, "UTF-8", "Q"); - - $customerMessage = constructCustomerMessageDE($message); - - $mail->clearAddresses(); - $mail->addAddress($customerEmail); - $mail->Subject = $encodedSubject; - $mail->Body = nl2br(htmlspecialchars($customerMessage)); - $mail->AltBody = htmlspecialchars($customerMessage); - - $mail->send(); - } -} catch (Exception $e) { - // Error response if an exception occurs - echo json_encode(['success' => false, 'message' => "Nachricht konnte nicht gesendet werden. Mailer Error: {$mail->ErrorInfo}"]); -} -?> diff --git a/public/php/mail.php b/public/php/mail.php deleted file mode 100644 index b063078..0000000 --- a/public/php/mail.php +++ /dev/null @@ -1,47 +0,0 @@ -SMTPDebug = SMTP::DEBUG_SERVER; // Aktivieren Sie dies für detailliertes Debugging - $mail->isSMTP(); // SMTP verwenden - $mail->Host = 'sslout.de'; // SMTP-Server setzen - $mail->SMTPAuth = true; // SMTP-Authentifizierung aktivieren - $mail->Username = 'ah@mediendesign-hnida.de'; // SMTP-Benutzernamen angeben - $mail->Password = 'jrd9h7RnVjf/'; // SMTP-Passwort angeben - $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Verschlüsselung aktivieren - $mail->Port = 465; // TCP-Port für die Verbindung - - // Empfänger - $mail->setFrom($email, $name); // Absenderadresse - $mail->addAddress('ah@mediendesign-hnida.de', 'Andreas Hnida'); // Empfänger hinzufügen - $mail->addReplyTo($email, $name); // Antwortadresse setzen - $mail->addBCC('ah@mediendesign-hnida.de'); // Bounce-E-Mail-Adresse als BCC hinzufügen - - // Inhalt - $mail->isHTML(true); // E-Mail im HTML-Format - $mail->Subject = 'Neue Nachricht vom Bestellformular der Website'; - $mail->Body = nl2br(htmlspecialchars($message)); - $mail->AltBody = htmlspecialchars($message); - - $mail->send(); - echo 'Nachricht wurde gesendet'; -} catch (Exception $e) { - echo "Nachricht konnte nicht gesendet werden. Fehler: {$mail->ErrorInfo}"; -} -?> diff --git a/public/php/message.php b/public/php/message.php deleted file mode 100644 index c73f888..0000000 --- a/public/php/message.php +++ /dev/null @@ -1,117 +0,0 @@ -