Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 93bf1cf849 | |||
| f45d83051d | |||
| 2d173f6d25 |
5
.gitignore
vendored
5
.gitignore
vendored
@ -104,6 +104,7 @@ dist
|
|||||||
|
|
||||||
# vuepress v2.x temp and cache directory
|
# vuepress v2.x temp and cache directory
|
||||||
.temp
|
.temp
|
||||||
|
.cache
|
||||||
|
|
||||||
# Docusaurus cache and generated files
|
# Docusaurus cache and generated files
|
||||||
.docusaurus
|
.docusaurus
|
||||||
@ -131,7 +132,3 @@ dist
|
|||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
/.idea/git_toolbox_blame.xml
|
/.idea/git_toolbox_blame.xml
|
||||||
.package.json
|
|
||||||
.package-lock.json
|
|
||||||
.package.json
|
|
||||||
.package-lock.json
|
|
||||||
2
.idea/Webshop.iml
generated
2
.idea/Webshop.iml
generated
@ -5,7 +5,7 @@
|
|||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$" />
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="boxicons" level="application" />
|
<orderEntry type="library" name="font-awesome" level="application" />
|
||||||
<orderEntry type="library" name="boxicons" level="application" />
|
<orderEntry type="library" name="boxicons" level="application" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
8
.idea/dataSources.xml
generated
8
.idea/dataSources.xml
generated
@ -2,12 +2,14 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
<data-source source="LOCAL" name="@localhost" uuid="fd7d9aa1-1427-4fa7-afe9-9730b93129bb">
|
<data-source source="LOCAL" name="@localhost" uuid="fd7d9aa1-1427-4fa7-afe9-9730b93129bb">
|
||||||
<driver-ref>mariadb</driver-ref>
|
<driver-ref>mysql.8</driver-ref>
|
||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
|
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||||
<jdbc-url>jdbc:mariadb://localhost:3306</jdbc-url>
|
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
|
||||||
<jdbc-additional-properties>
|
<jdbc-additional-properties>
|
||||||
|
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||||
|
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||||
</jdbc-additional-properties>
|
</jdbc-additional-properties>
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
<working-dir>$ProjectFileDir$</working-dir>
|
||||||
</data-source>
|
</data-source>
|
||||||
|
|||||||
2
.idea/jsLibraryMappings.xml
generated
2
.idea/jsLibraryMappings.xml
generated
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="JavaScriptLibraryMappings">
|
<component name="JavaScriptLibraryMappings">
|
||||||
<file url="file://$PROJECT_DIR$" libraries="{HTML, HTTP Pre-Request and Response Handler, boxicons}" />
|
<file url="file://$PROJECT_DIR$" libraries="{HTML, HTTP Pre-Request and Response Handler}" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@ -1,3 +1,3 @@
|
|||||||
# Webshop
|
# Webshop
|
||||||
|
|
||||||
Webshop für Modellautos
|
Webshop Autohändler
|
||||||
170
database/db_scripts/create_db.sql
Normal file
170
database/db_scripts/create_db.sql
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
CREATE TABLE `discount`
|
||||||
|
(
|
||||||
|
`deleted_at` INT(8) NOT NULL,
|
||||||
|
`name` VARCHAR(255) NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`description` TEXT NOT NULL,
|
||||||
|
`discount_percent` DECIMAL(8, 2) NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`active` BOOLEAN NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `user_address`
|
||||||
|
(
|
||||||
|
`address_line1` VARCHAR(255) NOT NULL,
|
||||||
|
`city` VARCHAR(255) NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`country` VARCHAR(2) NOT NULL,
|
||||||
|
`user_id` INT UNSIGNED NOT NULL,
|
||||||
|
`mobile` VARCHAR(255) NOT NULL,
|
||||||
|
`postal_code` INT NOT NULL,
|
||||||
|
`address_line2` VARCHAR(255) NOT NULL,
|
||||||
|
`telephone` VARCHAR(255) NOT NULL
|
||||||
|
);
|
||||||
|
ALTER TABLE
|
||||||
|
`user_address`
|
||||||
|
ADD UNIQUE `user_address_mobile_unique` (`mobile`);
|
||||||
|
ALTER TABLE
|
||||||
|
`user_address`
|
||||||
|
ADD UNIQUE `user_address_telephone_unique` (`telephone`);
|
||||||
|
CREATE TABLE `product_inventory`
|
||||||
|
(
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`quantity` INT NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`deleted_at` INT(8) NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `payment_details`
|
||||||
|
(
|
||||||
|
`order_id` INT NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`status` VARCHAR(255) NOT NULL,
|
||||||
|
`provider` VARCHAR(255) NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`amount` INT NOT NULL,
|
||||||
|
`created_at` INT(8) NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `order_details`
|
||||||
|
(
|
||||||
|
`payment_id` INT UNSIGNED NOT NULL,
|
||||||
|
`total` DECIMAL(8, 2) NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`user_id` INT UNSIGNED NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `order_items`
|
||||||
|
(
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`user_id` BIGINT NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`quantity` INT NOT NULL,
|
||||||
|
`order_id` INT UNSIGNED NOT NULL,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`product_id` INT UNSIGNED NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `user_payment`
|
||||||
|
(
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`provider` VARCHAR(255) NOT NULL,
|
||||||
|
`account_no` VARCHAR(255) NOT NULL,
|
||||||
|
`expiry` DATE NOT NULL,
|
||||||
|
`payment_type` VARCHAR(255) NOT NULL,
|
||||||
|
`user_id` INT UNSIGNED NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `product`
|
||||||
|
(
|
||||||
|
`category_id` INT UNSIGNED NOT NULL,
|
||||||
|
`model` VARCHAR(255) NOT NULL,
|
||||||
|
`color` VARCHAR(255) NOT NULL,
|
||||||
|
`engine` VARCHAR(255) NOT NULL,
|
||||||
|
`description` TEXT NOT NULL,
|
||||||
|
`make` VARCHAR(255) NOT NULL,
|
||||||
|
`inventory_id` INT UNSIGNED NOT NULL,
|
||||||
|
`discount_id` INT UNSIGNED NOT NULL,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`name` VARCHAR(255) NOT NULL,
|
||||||
|
`deleted_at` INT(8) NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`price` DECIMAL(8, 2) NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `product_category`
|
||||||
|
(
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`name` VARCHAR(255) NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`desc` TEXT NOT NULL,
|
||||||
|
`deleted_at` INT(8) NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `user`
|
||||||
|
(
|
||||||
|
`is_active` BOOLEAN NOT NULL,
|
||||||
|
`lower_name` VARCHAR(255) NOT NULL,
|
||||||
|
`email` VARCHAR(255) NOT NULL,
|
||||||
|
`passwd_hash_algo` VARCHAR(255) NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`is_admin` BOOLEAN NOT NULL,
|
||||||
|
`name` VARCHAR(255) NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`passwd` VARCHAR(255) NOT NULL
|
||||||
|
);
|
||||||
|
ALTER TABLE
|
||||||
|
`user`
|
||||||
|
ADD UNIQUE `user_email_unique` (`email`);
|
||||||
|
CREATE TABLE `shopping_session`
|
||||||
|
(
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`user_id` INT UNSIGNED NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`total` DECIMAL(8, 2) NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE `cart_item`
|
||||||
|
(
|
||||||
|
`product_id` INT UNSIGNED NOT NULL,
|
||||||
|
`session_id` INT UNSIGNED NOT NULL,
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
`created_at` INT(8) NOT NULL,
|
||||||
|
`modified_at` INT(8) NOT NULL,
|
||||||
|
`quantity` INT NOT NULL
|
||||||
|
);
|
||||||
|
ALTER TABLE
|
||||||
|
`product`
|
||||||
|
ADD CONSTRAINT `product_inventory_id_foreign` FOREIGN KEY (`inventory_id`) REFERENCES `product_inventory` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`order_items`
|
||||||
|
ADD CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `order_details` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`product`
|
||||||
|
ADD CONSTRAINT `product_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `product_category` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`order_details`
|
||||||
|
ADD CONSTRAINT `order_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`cart_item`
|
||||||
|
ADD CONSTRAINT `cart_item_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`order_items`
|
||||||
|
ADD CONSTRAINT `order_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`user_address`
|
||||||
|
ADD CONSTRAINT `user_address_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`order_details`
|
||||||
|
ADD CONSTRAINT `order_details_payment_id_foreign` FOREIGN KEY (`payment_id`) REFERENCES `payment_details` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`product`
|
||||||
|
ADD CONSTRAINT `product_discount_id_foreign` FOREIGN KEY (`discount_id`) REFERENCES `discount` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`user_payment`
|
||||||
|
ADD CONSTRAINT `user_payment_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`shopping_session`
|
||||||
|
ADD CONSTRAINT `shopping_session_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
||||||
|
ALTER TABLE
|
||||||
|
`cart_item`
|
||||||
|
ADD CONSTRAINT `cart_item_session_id_foreign` FOREIGN KEY (`session_id`) REFERENCES `shopping_session` (`id`);
|
||||||
24
database/db_scripts/delete_db.sql
Normal file
24
database/db_scripts/delete_db.sql
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
drop table if exists cart_item;
|
||||||
|
|
||||||
|
drop table if exists discount;
|
||||||
|
|
||||||
|
drop table if exists oder_items;
|
||||||
|
|
||||||
|
drop table if exists order_details;
|
||||||
|
|
||||||
|
drop table if exists payment_details;
|
||||||
|
|
||||||
|
drop table if exists product;
|
||||||
|
|
||||||
|
drop table if exists product_category;
|
||||||
|
|
||||||
|
drop table if exists product_inventory;
|
||||||
|
|
||||||
|
drop table if exists shopping_session;
|
||||||
|
|
||||||
|
drop table if exists user;
|
||||||
|
|
||||||
|
drop table if exists user_address;
|
||||||
|
|
||||||
|
drop table if exists user_payment;
|
||||||
|
|
||||||
@ -1,146 +0,0 @@
|
|||||||
DROP DATABASE IF EXISTS webshop;
|
|
||||||
CREATE DATABASE IF NOT EXISTS `webshop`
|
|
||||||
CHARACTER SET utf8 COLLATE utf8_general_ci;
|
|
||||||
|
|
||||||
USE `webshop`;
|
|
||||||
|
|
||||||
CREATE TABLE `user`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`lower_name` VARCHAR(255) NOT NULL,
|
|
||||||
`email` VARCHAR(255) NOT NULL DEFAULT 'NONE',
|
|
||||||
`passwd` VARCHAR(255) NOT NULL DEFAULT 'NONE',
|
|
||||||
`passwd_hash_algo` VARCHAR(255) NOT NULL DEFAULT 'NONE',
|
|
||||||
`is_admin` BOOLEAN NOT NULL DEFAULT '0'
|
|
||||||
);
|
|
||||||
ALTER TABLE
|
|
||||||
`user`
|
|
||||||
ADD UNIQUE `user_email_unique` (`email`);
|
|
||||||
CREATE TABLE `user_address`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`user_id` INT UNSIGNED NOT NULL,
|
|
||||||
`address_line1` VARCHAR(255) NOT NULL,
|
|
||||||
`address_line2` VARCHAR(255) NOT NULL,
|
|
||||||
`city` VARCHAR(255) NOT NULL,
|
|
||||||
`postal_code` INT NOT NULL,
|
|
||||||
`country` VARCHAR(2) NOT NULL,
|
|
||||||
`telephone` VARCHAR(255) NOT NULL
|
|
||||||
);
|
|
||||||
ALTER TABLE
|
|
||||||
`user_address`
|
|
||||||
ADD UNIQUE `user_address_telephone_unique` (`telephone`);
|
|
||||||
CREATE TABLE `user_payment`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`user_id` INT UNSIGNED NOT NULL,
|
|
||||||
`payment_type` VARCHAR(255) NOT NULL,
|
|
||||||
`provider` VARCHAR(255) NOT NULL,
|
|
||||||
`account_no` VARCHAR(255) NOT NULL,
|
|
||||||
`expiry` DATE NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `shopping_session`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`user_id` INT UNSIGNED NOT NULL,
|
|
||||||
`total` DECIMAL(8, 2) NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `cart_item`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`session_id` INT UNSIGNED NOT NULL,
|
|
||||||
`product_id` INT UNSIGNED NOT NULL,
|
|
||||||
`quantity` INT NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `payment_details`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`order_id` INT NOT NULL,
|
|
||||||
`amount` INT NOT NULL,
|
|
||||||
`provider` VARCHAR(255) NOT NULL,
|
|
||||||
`status` VARCHAR(255) NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `product`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`make` VARCHAR(255) NOT NULL,
|
|
||||||
`model` VARCHAR(255) NOT NULL,
|
|
||||||
`description` TEXT NOT NULL,
|
|
||||||
`category_id` INT UNSIGNED NOT NULL,
|
|
||||||
`price` DECIMAL(8, 2) NOT NULL,
|
|
||||||
`discount_id` INT UNSIGNED NOT NULL,
|
|
||||||
`created_at` DATE NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `discount`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`description` TEXT NOT NULL,
|
|
||||||
`discount_percent` DECIMAL(8, 2) NOT NULL,
|
|
||||||
`active` BOOLEAN NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `order_items`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`order_id` INT UNSIGNED NOT NULL,
|
|
||||||
`product_id` INT UNSIGNED NOT NULL,
|
|
||||||
`quantity` INT NOT NULL,
|
|
||||||
`user_id` BIGINT NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `product_category`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`name` VARCHAR(255) NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `order_details`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`user_id` INT UNSIGNED NOT NULL,
|
|
||||||
`total` DECIMAL(8, 2) NOT NULL,
|
|
||||||
`payment_id` INT UNSIGNED NOT NULL
|
|
||||||
);
|
|
||||||
CREATE TABLE `product_pictures`
|
|
||||||
(
|
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
`product_id` INT UNSIGNED NOT NULL,
|
|
||||||
`picture_base64` TEXT NOT NULL,
|
|
||||||
`is_primary` BOOLEAN NOT NULL
|
|
||||||
);
|
|
||||||
ALTER TABLE
|
|
||||||
`product_pictures`
|
|
||||||
ADD CONSTRAINT `product_pictures_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`user_payment`
|
|
||||||
ADD CONSTRAINT `user_payment_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`order_details`
|
|
||||||
ADD CONSTRAINT `order_details_payment_id_foreign` FOREIGN KEY (`payment_id`) REFERENCES `payment_details` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`order_details`
|
|
||||||
ADD CONSTRAINT `order_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`order_items`
|
|
||||||
ADD CONSTRAINT `order_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`product`
|
|
||||||
ADD CONSTRAINT `product_discount_id_foreign` FOREIGN KEY (`discount_id`) REFERENCES `discount` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`shopping_session`
|
|
||||||
ADD CONSTRAINT `shopping_session_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`product`
|
|
||||||
ADD CONSTRAINT `product_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `product_category` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`user_address`
|
|
||||||
ADD CONSTRAINT `user_address_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`order_items`
|
|
||||||
ADD CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `order_details` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`cart_item`
|
|
||||||
ADD CONSTRAINT `cart_item_session_id_foreign` FOREIGN KEY (`session_id`) REFERENCES `shopping_session` (`id`);
|
|
||||||
ALTER TABLE
|
|
||||||
`cart_item`
|
|
||||||
ADD CONSTRAINT `cart_item_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`);
|
|
||||||
@ -1,643 +0,0 @@
|
|||||||
USE webshop;
|
|
||||||
|
|
||||||
-- Product Categories
|
|
||||||
INSERT INTO product_category (id, name)
|
|
||||||
VALUES (1, 'Motorräder');
|
|
||||||
INSERT INTO product_category (id, name)
|
|
||||||
VALUES (2, 'Oldtimer');
|
|
||||||
INSERT INTO product_category (id, name)
|
|
||||||
VALUES (3, 'Sportwägen');
|
|
||||||
INSERT INTO product_category (id, name)
|
|
||||||
VALUES (4, 'LKWs');
|
|
||||||
INSERT INTO product_category (id, name)
|
|
||||||
VALUES (5, 'Kleinwägen');
|
|
||||||
|
|
||||||
-- Discounts
|
|
||||||
INSERT INTO discount (id, name, description, discount_percent, active)
|
|
||||||
VALUES (1, 'Spring Sale', 'Description for Spring Sale', 15, TRUE);
|
|
||||||
INSERT INTO discount (id, name, description, discount_percent, active)
|
|
||||||
VALUES (2, 'Black Friday', 'Description for Black Friday', 40, TRUE);
|
|
||||||
INSERT INTO discount (id, name, description, discount_percent, active)
|
|
||||||
VALUES (3, 'New User', 'Description for New User', 10, TRUE);
|
|
||||||
INSERT INTO discount (id, name, description, discount_percent, active)
|
|
||||||
VALUES (4, 'Clearance', 'Description for Clearance', 25, TRUE);
|
|
||||||
INSERT INTO discount (id, name, description, discount_percent, active)
|
|
||||||
VALUES (5, 'Holiday Deal', 'Description for Holiday Deal', 20, TRUE);
|
|
||||||
|
|
||||||
-- Users
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (1, 'User1', LOWER('User1'), 'user1@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (2, 'User2', LOWER('User2'), 'user2@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (3, 'User3', LOWER('User3'), 'user3@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (4, 'User4', LOWER('User4'), 'user4@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (5, 'User5', LOWER('User5'), 'user5@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (6, 'User6', LOWER('User6'), 'user6@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (7, 'User7', LOWER('User7'), 'user7@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (8, 'User8', LOWER('User8'), 'user8@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (9, 'User9', LOWER('User9'), 'user9@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (10, 'User10', LOWER('User10'), 'user10@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (11, 'User11', LOWER('User11'), 'user11@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (12, 'User12', LOWER('User12'), 'user12@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (13, 'User13', LOWER('User13'), 'user13@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (14, 'User14', LOWER('User14'), 'user14@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (15, 'User15', LOWER('User15'), 'user15@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (16, 'User16', LOWER('User16'), 'user16@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (17, 'User17', LOWER('User17'), 'user17@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (18, 'User18', LOWER('User18'), 'user18@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (19, 'User19', LOWER('User19'), 'user19@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt',FALSE);
|
|
||||||
INSERT INTO user (id, name, lower_name, email, passwd, passwd_hash_algo, is_admin)
|
|
||||||
VALUES (20, 'User20', LOWER('User20'), 'user20@example.com', '$2b$10$EUsWCS278AwwfZ9K7G4fkellUSPGAOs0hhXkIDbakVGJYE72mNMAC', 'bcrypt', FALSE);
|
|
||||||
|
|
||||||
-- User Addresses
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (1, '123 Main St', 'Apt 1', 'Berlin', 10001, 'DE', '1234567891');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (2, '123 Main St', 'Apt 2', 'Toronto', 10002, 'DE', '1234567892');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (3, '123 Main St', 'Apt 3', 'New York', 10003, 'GB', '1234567893');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (4, '123 Main St', 'Apt 4', 'Paris', 10004, 'DE', '1234567894');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (5, '123 Main St', 'Apt 5', 'Paris', 10005, 'FR', '1234567895');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (6, '123 Main St', 'Apt 6', 'New York', 10006, 'DE', '1234567896');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (7, '123 Main St', 'Apt 7', 'Berlin', 10007, 'FR', '1234567897');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (8, '123 Main St', 'Apt 8', 'Paris', 10008, 'US', '1234567898');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (9, '123 Main St', 'Apt 9', 'London', 10009, 'FR', '1234567899');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (10, '123 Main St', 'Apt 10', 'Paris', 10010, 'CA', '12345678910');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (11, '123 Main St', 'Apt 11', 'London', 10011, 'DE', '12345678911');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (12, '123 Main St', 'Apt 12', 'London', 10012, 'US', '12345678912');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (13, '123 Main St', 'Apt 13', 'Toronto', 10013, 'US', '12345678913');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (14, '123 Main St', 'Apt 14', 'Toronto', 10014, 'CA', '12345678914');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (15, '123 Main St', 'Apt 15', 'Paris', 10015, 'CA', '12345678915');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (16, '123 Main St', 'Apt 16', 'London', 10016, 'US', '12345678916');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (17, '123 Main St', 'Apt 17', 'New York', 10017, 'CA', '12345678917');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (18, '123 Main St', 'Apt 18', 'Berlin', 10018, 'GB', '12345678918');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (19, '123 Main St', 'Apt 19', 'Berlin', 10019, 'DE', '12345678919');
|
|
||||||
INSERT INTO user_address (user_id, address_line1, address_line2, city, postal_code, country, telephone)
|
|
||||||
VALUES (20, '123 Main St', 'Apt 20', 'Berlin', 10020, 'GB', '12345678920');
|
|
||||||
|
|
||||||
-- User Payments
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (1, 'Credit Card', 'Stripe', 'ACCNO0001', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (2, 'Debit Card', 'Visa', 'ACCNO0002', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (3, 'PayPal', 'Stripe', 'ACCNO0003', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (4, 'PayPal', 'Visa', 'ACCNO0004', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (5, 'Debit Card', 'MasterCard', 'ACCNO0005', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (6, 'Credit Card', 'Visa', 'ACCNO0006', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (7, 'Debit Card', 'Stripe', 'ACCNO0007', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (8, 'PayPal', 'Stripe', 'ACCNO0008', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (9, 'Credit Card', 'MasterCard', 'ACCNO0009', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (10, 'PayPal', 'Stripe', 'ACCNO0010', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (11, 'PayPal', 'Visa', 'ACCNO0011', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (12, 'Debit Card', 'PayPal', 'ACCNO0012', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (13, 'PayPal', 'PayPal', 'ACCNO0013', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (14, 'PayPal', 'MasterCard', 'ACCNO0014', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (15, 'Credit Card', 'PayPal', 'ACCNO0015', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (16, 'Debit Card', 'Visa', 'ACCNO0016', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (17, 'Credit Card', 'PayPal', 'ACCNO0017', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (18, 'Debit Card', 'MasterCard', 'ACCNO0018', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (19, 'Debit Card', 'PayPal', 'ACCNO0019', '2026-12-31');
|
|
||||||
INSERT INTO user_payment (user_id, payment_type, provider, account_no, expiry)
|
|
||||||
VALUES (20, 'PayPal', 'Stripe', 'ACCNO0020', '2026-12-31');
|
|
||||||
|
|
||||||
-- Products
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (1, 'Product1', 'BrandA', 'Model1', 'Description for Product1', 5, 318.94, 2, '2024-06-16');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (2, 'Product2', 'BrandC', 'Model2', 'Description for Product2', 5, 521.19, 5, '2025-03-05');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (3, 'Product3', 'BrandB', 'Model3', 'Description for Product3', 2, 230.04, 2, '2024-08-12');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (4, 'Product4', 'BrandC', 'Model4', 'Description for Product4', 1, 147.85, 4, '2025-03-02');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (5, 'Product5', 'BrandA', 'Model5', 'Description for Product5', 4, 520.02, 3, '2024-09-08');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (6, 'Product6', 'BrandC', 'Model6', 'Description for Product6', 4, 146.06, 5, '2024-07-08');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (7, 'Product7', 'BrandC', 'Model7', 'Description for Product7', 1, 862.11, 3, '2025-03-20');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (8, 'Product8', 'BrandC', 'Model8', 'Description for Product8', 1, 313.82, 2, '2024-10-17');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (9, 'Product9', 'BrandA', 'Model9', 'Description for Product9', 2, 491.74, 2, '2025-01-17');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (10, 'Product10', 'BrandB', 'Model10', 'Description for Product10', 3, 182.49, 3, '2025-01-02');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (11, 'Product11', 'BrandB', 'Model11', 'Description for Product11', 4, 907.39, 3, '2025-01-29');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (12, 'Product12', 'BrandB', 'Model12', 'Description for Product12', 2, 962.56, 2, '2024-07-01');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (13, 'Product13', 'BrandC', 'Model13', 'Description for Product13', 5, 933.24, 5, '2024-05-24');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (14, 'Product14', 'BrandB', 'Model14', 'Description for Product14', 2, 474.63, 1, '2024-11-26');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (15, 'Product15', 'BrandC', 'Model15', 'Description for Product15', 5, 112.99, 1, '2024-07-14');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (16, 'Product16', 'BrandA', 'Model16', 'Description for Product16', 5, 92.21, 5, '2024-06-21');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (17, 'Product17', 'BrandB', 'Model17', 'Description for Product17', 1, 30.15, 4, '2024-10-04');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (18, 'Product18', 'BrandA', 'Model18', 'Description for Product18', 2, 169.85, 1, '2024-11-07');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (19, 'Product19', 'BrandB', 'Model19', 'Description for Product19', 5, 559.7, 1, '2024-09-12');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (20, 'Product20', 'BrandB', 'Model20', 'Description for Product20', 1, 617.8, 4, '2024-04-26');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (21, 'Product21', 'BrandB', 'Model21', 'Description for Product21', 1, 353.15, 4, '2024-04-24');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (22, 'Product22', 'BrandA', 'Model22', 'Description for Product22', 4, 827.72, 1, '2024-04-17');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (23, 'Product23', 'BrandB', 'Model23', 'Description for Product23', 4, 24.71, 2, '2025-03-24');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (24, 'Product24', 'BrandB', 'Model24', 'Description for Product24', 1, 452.61, 1, '2024-07-06');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (25, 'Product25', 'BrandA', 'Model25', 'Description for Product25', 3, 245.66, 2, '2024-05-20');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (26, 'Product26', 'BrandA', 'Model26', 'Description for Product26', 4, 741.09, 2, '2024-12-23');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (27, 'Product27', 'BrandB', 'Model27', 'Description for Product27', 2, 549.64, 2, '2025-01-28');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (28, 'Product28', 'BrandC', 'Model28', 'Description for Product28', 3, 93.43, 2, '2024-07-15');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (29, 'Product29', 'BrandC', 'Model29', 'Description for Product29', 1, 610.66, 1, '2024-08-07');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (30, 'Product30', 'BrandC', 'Model30', 'Description for Product30', 4, 537.6, 3, '2024-06-24');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (31, 'Product31', 'BrandB', 'Model31', 'Description for Product31', 4, 377.7, 1, '2024-06-20');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (32, 'Product32', 'BrandA', 'Model32', 'Description for Product32', 4, 353.25, 2, '2024-09-20');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (33, 'Product33', 'BrandB', 'Model33', 'Description for Product33', 4, 550.94, 3, '2024-08-02');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (34, 'Product34', 'BrandA', 'Model34', 'Description for Product34', 1, 692.25, 4, '2024-04-16');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (35, 'Product35', 'BrandB', 'Model35', 'Description for Product35', 4, 249.37, 3, '2024-05-10');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (36, 'Product36', 'BrandC', 'Model36', 'Description for Product36', 4, 418.07, 1, '2024-08-18');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (37, 'Product37', 'BrandC', 'Model37', 'Description for Product37', 1, 455.82, 4, '2024-04-27');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (38, 'Product38', 'BrandA', 'Model38', 'Description for Product38', 4, 664.72, 1, '2024-12-28');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (39, 'Product39', 'BrandB', 'Model39', 'Description for Product39', 3, 80.6, 1, '2024-10-18');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (40, 'Product40', 'BrandA', 'Model40', 'Description for Product40', 4, 28.12, 4, '2024-09-05');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (41, 'Product41', 'BrandA', 'Model41', 'Description for Product41', 3, 251.78, 5, '2025-02-08');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (42, 'Product42', 'BrandC', 'Model42', 'Description for Product42', 4, 144.43, 1, '2024-05-11');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (43, 'Product43', 'BrandA', 'Model43', 'Description for Product43', 5, 748.88, 3, '2025-01-04');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (44, 'Product44', 'BrandB', 'Model44', 'Description for Product44', 5, 882.23, 1, '2024-08-19');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (45, 'Product45', 'BrandB', 'Model45', 'Description for Product45', 3, 899.3, 4, '2024-07-03');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (46, 'Product46', 'BrandC', 'Model46', 'Description for Product46', 4, 272.38, 4, '2024-11-11');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (47, 'Product47', 'BrandB', 'Model47', 'Description for Product47', 3, 470.78, 2, '2024-10-28');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (48, 'Product48', 'BrandC', 'Model48', 'Description for Product48', 2, 116.97, 1, '2024-09-13');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (49, 'Product49', 'BrandA', 'Model49', 'Description for Product49', 5, 30.57, 4, '2024-09-18');
|
|
||||||
INSERT INTO product (id, name, make, model, description, category_id, price, discount_id, created_at)
|
|
||||||
VALUES (50, 'Product50', 'BrandB', 'Model50', 'Description for Product50', 2, 861.84, 4, '2024-11-26');
|
|
||||||
|
|
||||||
-- Product Pictures
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (1, 'mnELxugt4Ydr4FUssyH+bkSevIrNl/KBGyH8LLhxFKI=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (2, 'mr6UQfVtBB6Gj7MaxDer/zNGsEeJ3DHH5JzLZmKUC+c=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (3, 'yCeHteIvMo3LNNxflAknKAm3TUm6bI/+cUe4mCyp5Vs=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (4, 'A1trFKv8HmX7+WxtkRAod/QbH2xKBUr3AS0sh7OT+oI=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (5, 'zdfKP/uLcgmMv1x4v+5FA2gEGK00yW2HJDHemYAxEBk=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (6, 'wFpi7y31rFU7VICwWc8ONnx2ApSFSaF1do/ozuoENTM=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (7, 'KkpNEMOR/cMQ3zv7mjdiMG8lWh6x7S6C8vQFzqN8YYk=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (8, 'VadAqdlySAPOguy/vVfGGaUzbMciyv9niqjS2peB79c=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (9, 'pecXJbykN65n5BwAuGiWEiW2YRP1vxk5JUaBB7Z2QKE=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (10, 'JRkmNYuGySf+MCx+dPRj5cVMOu0AhHEUhSeKWGvsoM0=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (11, 'Tln4hU4s5Nyx5wkzA/kCn4puKxHqfrdpiEaOn+Dsj0c=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (12, 'rmlebzsSR28Xl8W7HrrCetU/Xlww/m750el2QgCLrtw=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (13, 'aSXu2+PDwlE0bJ7+JgifoIRYmNFgpf4Rac1Hih3OaoQ=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (14, '0nTDMczLNN5MmLM9CecyZyNHSjAg3+hj3QIEKjEheIw=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (15, 'eKKF0BWqGh977FJNERzlZH01xvLCJLfWO507tFctImA=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (16, 'Qx0W4ZIOI3EWcdESsMm3Wp/NEfeGssKrTD4D7hH3bzs=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (17, 't70dXq30C82ca1wRo7TmG3GBEa1MrTccl6uVbOYUcf8=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (18, 'o2xac1ar86EUPNi/q+FJEqvfIjIVUTBBKCmHoMaAqKU=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (19, 'j252AyKpFxiTVlXHar/vicn1NBzUoZtMOA7V+bVSuto=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (20, 'ddoRalgx15Oq2XgG83ksnZYnr38k3bgytWyuvMwPVNc=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (21, 'iPcGIdcvwInGY3mc6wMKYyfAagIz5ZRjmfbbtg2+fDc=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (22, 'vtP3wxpUhcgg+M1BQV88MlIWbsOU0FkT/3qiDEJfjsM=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (23, 'lkMSOWhVUXQJwj8qui8OsevJp+a8drNyYY1PdsF9ofQ=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (24, 'OXZP3Y5ZNRREjBlK49W4oESBVc1CaPPPOJXi6mlH6n4=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (25, '1ODn0qkTCPxfapjkV8baMp+KuFrkbaLhTZfb9NQgUPU=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (26, 'bgz2EcoOVDRagfBNLi8aPMx3yE8TbmQryWKsT7dI35c=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (27, '5KkXTV4R2M4vbf9/1R4F1pEqt02AlU6BGcUSTzD/8PI=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (28, 'ZXLkPF69pEUGz7/asGZ/n1n1yOfknrWYFv13SpvpJ9s=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (29, 'DC8UtBTDA80YqgOKxu2jNfdm4Y8JpxzuCoRiHbAiT10=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (30, 'OFm88w/1zT7DQjOVXcANhLLD6khvrF3UI7b56KmBzaU=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (31, 'DfPzNf2+gQ9fx7QGxDY2t8VL0rtizZGY8zPvzAbqMIk=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (32, 'w89sMLHYMX7IW5ykCvu4BW448GkG4/MAWt89jbkr7YI=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (33, 'syvLhg+8VIt4Gihgq+FtmPABuD3sAMTdDlyhOu85Kqo=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (34, '2fDRzCfntjtZAneqqyzr3hD6RV/0Ad/YmCwTwjNlenc=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (35, 'ygca9b8poneJF/3RS5Kr5GMfH7+kv6m0VFDDvknfwfE=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (36, 'tRriLe4gYRGOepP/Bn0kb6ChEKoOfKMxgnmxOh1sgS0=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (37, 'ir5yC2KMiX0w7fnaGNp85WrZU04Mgc59KWr0hkx6DIc=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (38, 'oNw9xNd/JfmOFAVX+sKWiLfH2ipyP/z/wW4dmaPN2qM=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (39, 'D+mT9AXixD432UIBcTQBZ9sd+d6W6MsnJaSOWom2DxA=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (40, 'QbjTL1bK2X5GE2KGpisiI9UIBboZhv+zFH2S16cl2E0=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (41, 'MrUZXSdNCy3Uiochw8wSQjMu4veozWLywvp3IlbIQwo=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (42, 'i2+PZBqElXU+yUCGWRpz/HOxy2RMbmFz+9Z/JWkOgHU=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (43, 'D73S1+s3ILVdRaXj0ow+baD0QAtBCUh6jNVyYkKx3Cs=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (44, 'gHDoV2NuiBiDGJEIWLy32zrFRQb5C0ocSIgKjYs1E84=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (45, 'ks4WUYGB7sv8hFgK+H3v72t7HXDMcArsRdtj2U9B798=', TRUE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (46, '4pX2NjrxNZCSy96Uj3yXSbcM+CZ8N0WZTKVzuEl4kls=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (47, 'lY+/60wB02mXhaMBw2vcGhkYyOHUxgw0ItOqcb+wM/Q=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (48, '/QDMi1jgaR9dDlJEKLte5Zf+aMe+7Z3BLdndbgOIDO4=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (49, 'oyYP6vIP1QfDWGJBF8DJrzrx9o44aH4tnXOGCPQfEF8=', FALSE);
|
|
||||||
INSERT INTO product_pictures (product_id, picture_base64, is_primary)
|
|
||||||
VALUES (50, 'fstdpDDpSI+KUdWR7zzqlsaHRQ82Elx396/DLJXgf6o=', TRUE);
|
|
||||||
|
|
||||||
-- Shopping Sessions
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (1, 1, 538.84);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (2, 2, 734.36);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (3, 3, 1680.53);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (4, 4, 303.57);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (5, 5, 1924.56);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (6, 6, 46.64);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (7, 7, 266.57);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (8, 8, 1503.89);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (9, 9, 1808.29);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (10, 10, 1890.97);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (11, 11, 30.01);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (12, 12, 1479.1);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (13, 13, 1559.22);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (14, 14, 1612.68);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (15, 15, 1905.59);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (16, 16, 141.6);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (17, 17, 496.74);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (18, 18, 1678.68);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (19, 19, 1140.02);
|
|
||||||
INSERT INTO shopping_session (id, user_id, total)
|
|
||||||
VALUES (20, 20, 872.75);
|
|
||||||
|
|
||||||
-- Cart Items
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (1, 1, 40, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (2, 1, 26, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (3, 2, 19, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (4, 2, 23, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (5, 3, 4, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (6, 3, 6, 5);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (7, 4, 21, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (8, 4, 26, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (9, 5, 20, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (10, 5, 3, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (11, 6, 22, 2);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (12, 6, 1, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (13, 7, 49, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (14, 7, 45, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (15, 8, 7, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (16, 8, 20, 5);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (17, 9, 21, 2);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (18, 9, 13, 2);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (19, 10, 41, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (20, 10, 21, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (21, 11, 19, 5);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (22, 11, 36, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (23, 12, 10, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (24, 12, 38, 5);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (25, 13, 16, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (26, 13, 2, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (27, 14, 22, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (28, 14, 44, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (29, 15, 14, 1);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (30, 15, 14, 2);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (31, 16, 25, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (32, 16, 1, 2);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (33, 17, 33, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (34, 17, 42, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (35, 18, 48, 4);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (36, 18, 18, 5);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (37, 19, 21, 5);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (38, 19, 26, 2);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (39, 20, 36, 3);
|
|
||||||
INSERT INTO cart_item (id, session_id, product_id, quantity)
|
|
||||||
VALUES (40, 20, 36, 3);
|
|
||||||
|
|
||||||
-- Orders and Payment Details
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (1, 1, 650, 'MasterCard', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (1, 1, 650, 1);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (2, 2, 241, 'MasterCard', 'Pending');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (2, 2, 241, 2);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (3, 3, 134, 'PayPal', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (3, 3, 134, 3);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (4, 4, 761, 'Stripe', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (4, 4, 761, 4);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (5, 5, 356, 'Stripe', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (5, 5, 356, 5);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (6, 6, 187, 'Visa', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (6, 6, 187, 6);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (7, 7, 610, 'MasterCard', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (7, 7, 610, 7);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (8, 8, 457, 'PayPal', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (8, 8, 457, 8);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (9, 9, 178, 'MasterCard', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (9, 9, 178, 9);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (10, 10, 156, 'Stripe', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (10, 10, 156, 10);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (11, 11, 919, 'PayPal', 'Pending');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (11, 11, 919, 11);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (12, 12, 877, 'MasterCard', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (12, 12, 877, 12);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (13, 13, 746, 'Visa', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (13, 13, 746, 13);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (14, 14, 440, 'Stripe', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (14, 14, 440, 14);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (15, 15, 983, 'Stripe', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (15, 15, 983, 15);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (16, 16, 530, 'Visa', 'Failed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (16, 16, 530, 16);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (17, 17, 900, 'Visa', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (17, 17, 900, 17);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (18, 18, 338, 'Stripe', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (18, 18, 338, 18);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (19, 19, 759, 'PayPal', 'Pending');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (19, 19, 759, 19);
|
|
||||||
INSERT INTO payment_details (id, order_id, amount, provider, status)
|
|
||||||
VALUES (20, 20, 956, 'Stripe', 'Completed');
|
|
||||||
INSERT INTO order_details (id, user_id, total, payment_id)
|
|
||||||
VALUES (20, 20, 956, 20);
|
|
||||||
|
|
||||||
-- Order Items
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (1, 1, 21, 3, 1);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (2, 1, 25, 2, 1);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (3, 2, 22, 2, 2);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (4, 2, 27, 1, 2);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (5, 3, 15, 2, 3);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (6, 3, 32, 2, 3);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (7, 4, 17, 3, 4);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (8, 4, 28, 1, 4);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (9, 5, 47, 1, 5);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (10, 5, 34, 3, 5);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (11, 6, 16, 3, 6);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (12, 6, 19, 1, 6);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (13, 7, 17, 2, 7);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (14, 7, 10, 1, 7);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (15, 8, 40, 3, 8);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (16, 8, 29, 2, 8);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (17, 9, 23, 1, 9);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (18, 9, 13, 3, 9);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (19, 10, 8, 1, 10);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (20, 10, 2, 3, 10);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (21, 11, 27, 1, 11);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (22, 11, 4, 1, 11);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (23, 12, 27, 1, 12);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (24, 12, 10, 2, 12);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (25, 13, 8, 2, 13);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (26, 13, 22, 2, 13);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (27, 14, 33, 1, 14);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (28, 14, 46, 2, 14);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (29, 15, 37, 1, 15);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (30, 15, 10, 2, 15);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (31, 16, 27, 3, 16);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (32, 16, 26, 2, 16);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (33, 17, 15, 2, 17);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (34, 17, 12, 3, 17);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (35, 18, 39, 2, 18);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (36, 18, 26, 1, 18);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (37, 19, 15, 1, 19);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (38, 19, 29, 1, 19);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (39, 20, 16, 3, 20);
|
|
||||||
INSERT INTO order_items (id, order_id, product_id, quantity, user_id)
|
|
||||||
VALUES (40, 20, 8, 1, 20);
|
|
||||||
17
database/query/get_users.js
Normal file
17
database/query/get_users.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const mysql = require('mysql');
|
||||||
|
|
||||||
|
const connection = mysql.createConnection({
|
||||||
|
host: "localhost",
|
||||||
|
user: "root",
|
||||||
|
password: "",
|
||||||
|
database: "webshop"
|
||||||
|
});
|
||||||
|
|
||||||
|
connection.connect(function (err) {
|
||||||
|
if (err) throw err;
|
||||||
|
console.log("Connected to database");
|
||||||
|
connection.query("SELECT * FROM user", function (err, result) {
|
||||||
|
if (err) throw err;
|
||||||
|
console.log(result);
|
||||||
|
})
|
||||||
|
});
|
||||||
778
package-lock.json
generated
778
package-lock.json
generated
@ -1,52 +1,21 @@
|
|||||||
{
|
{
|
||||||
"name": "webshop",
|
"name": "sniper",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "webshop",
|
"name": "sniper",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"app-root-path": "^3.1.0",
|
|
||||||
"bcrypt": "^5.1.1",
|
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.4.7",
|
||||||
"express": "^4.21.2",
|
"express": "^4.21.2",
|
||||||
"express-session": "^1.18.1",
|
"express-session": "^1.18.1",
|
||||||
"mysql": "^2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"mysql2": "^3.12.0",
|
"path": "^0.12.7"
|
||||||
"node": "^22.15.0",
|
|
||||||
"path": "^0.12.7",
|
|
||||||
"server.js": "^1.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mapbox/node-pre-gyp": {
|
|
||||||
"version": "1.0.11",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",
|
|
||||||
"integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",
|
|
||||||
"license": "BSD-3-Clause",
|
|
||||||
"dependencies": {
|
|
||||||
"detect-libc": "^2.0.0",
|
|
||||||
"https-proxy-agent": "^5.0.0",
|
|
||||||
"make-dir": "^3.1.0",
|
|
||||||
"node-fetch": "^2.6.7",
|
|
||||||
"nopt": "^5.0.0",
|
|
||||||
"npmlog": "^5.0.1",
|
|
||||||
"rimraf": "^3.0.2",
|
|
||||||
"semver": "^7.3.5",
|
|
||||||
"tar": "^6.1.11"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"node-pre-gyp": "bin/node-pre-gyp"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/abbrev": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/accepts": {
|
"node_modules/accepts": {
|
||||||
"version": "1.3.8",
|
"version": "1.3.8",
|
||||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
||||||
@ -59,127 +28,11 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/agent-base": {
|
|
||||||
"version": "6.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
|
|
||||||
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"debug": "4"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/agent-base/node_modules/debug": {
|
|
||||||
"version": "4.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
|
||||||
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ms": "^2.1.3"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"supports-color": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/agent-base/node_modules/ms": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/ansi-regex": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
||||||
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/app-root-path": {
|
|
||||||
"version": "3.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz",
|
|
||||||
"integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/aproba": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/are-we-there-yet": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
|
|
||||||
"deprecated": "This package is no longer supported.",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"delegates": "^1.0.0",
|
|
||||||
"readable-stream": "^3.6.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/are-we-there-yet/node_modules/readable-stream": {
|
|
||||||
"version": "3.6.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
|
|
||||||
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"inherits": "^2.0.3",
|
|
||||||
"string_decoder": "^1.1.1",
|
|
||||||
"util-deprecate": "^1.0.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/array-flatten": {
|
"node_modules/array-flatten": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||||
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
||||||
},
|
},
|
||||||
"node_modules/aws-ssl-profiles": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/balanced-match": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/bcrypt": {
|
|
||||||
"version": "5.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz",
|
|
||||||
"integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==",
|
|
||||||
"hasInstallScript": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@mapbox/node-pre-gyp": "^1.0.11",
|
|
||||||
"node-addon-api": "^5.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 10.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/bignumber.js": {
|
"node_modules/bignumber.js": {
|
||||||
"version": "9.0.0",
|
"version": "9.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz",
|
||||||
@ -211,16 +64,6 @@
|
|||||||
"npm": "1.2.8000 || >= 1.4.16"
|
"npm": "1.2.8000 || >= 1.4.16"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brace-expansion": {
|
|
||||||
"version": "1.1.11",
|
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
|
||||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"balanced-match": "^1.0.0",
|
|
||||||
"concat-map": "0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/bytes": {
|
"node_modules/bytes": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
||||||
@ -247,36 +90,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/chownr": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
|
|
||||||
"license": "ISC",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/color-support": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
|
|
||||||
"license": "ISC",
|
|
||||||
"bin": {
|
|
||||||
"color-support": "bin.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/concat-map": {
|
|
||||||
"version": "0.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
||||||
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/console-control-strings": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/content-disposition": {
|
"node_modules/content-disposition": {
|
||||||
"version": "0.5.4",
|
"version": "0.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
||||||
@ -338,21 +151,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/delegates": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/denque": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/depd": {
|
"node_modules/depd": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
||||||
@ -370,15 +168,6 @@
|
|||||||
"npm": "1.2.8000 || >= 1.4.16"
|
"npm": "1.2.8000 || >= 1.4.16"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/detect-libc": {
|
|
||||||
"version": "2.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz",
|
|
||||||
"integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "16.4.7",
|
"version": "16.4.7",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
||||||
@ -396,12 +185,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||||
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
||||||
},
|
},
|
||||||
"node_modules/emoji-regex": {
|
|
||||||
"version": "8.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
||||||
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/encodeurl": {
|
"node_modules/encodeurl": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
||||||
@ -552,36 +335,6 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fs-minipass": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"minipass": "^3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/fs-minipass/node_modules/minipass": {
|
|
||||||
"version": "3.3.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
|
|
||||||
"integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"yallist": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/fs.realpath": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/function-bind": {
|
"node_modules/function-bind": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||||
@ -590,36 +343,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/gauge": {
|
|
||||||
"version": "3.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
|
|
||||||
"integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
|
|
||||||
"deprecated": "This package is no longer supported.",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"aproba": "^1.0.3 || ^2.0.0",
|
|
||||||
"color-support": "^1.1.2",
|
|
||||||
"console-control-strings": "^1.0.0",
|
|
||||||
"has-unicode": "^2.0.1",
|
|
||||||
"object-assign": "^4.1.1",
|
|
||||||
"signal-exit": "^3.0.0",
|
|
||||||
"string-width": "^4.2.3",
|
|
||||||
"strip-ansi": "^6.0.1",
|
|
||||||
"wide-align": "^1.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/generate-function": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"is-property": "^1.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/get-intrinsic": {
|
"node_modules/get-intrinsic": {
|
||||||
"version": "1.2.4",
|
"version": "1.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
||||||
@ -638,27 +361,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/glob": {
|
|
||||||
"version": "7.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
|
||||||
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
|
||||||
"deprecated": "Glob versions prior to v9 are no longer supported",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"fs.realpath": "^1.0.0",
|
|
||||||
"inflight": "^1.0.4",
|
|
||||||
"inherits": "2",
|
|
||||||
"minimatch": "^3.1.1",
|
|
||||||
"once": "^1.3.0",
|
|
||||||
"path-is-absolute": "^1.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "*"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/gopd": {
|
"node_modules/gopd": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
||||||
@ -703,12 +405,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/has-unicode": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/hasown": {
|
"node_modules/hasown": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||||
@ -735,42 +431,6 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/https-proxy-agent": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
|
||||||
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"agent-base": "6",
|
|
||||||
"debug": "4"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/https-proxy-agent/node_modules/debug": {
|
|
||||||
"version": "4.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
|
||||||
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ms": "^2.1.3"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"supports-color": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/https-proxy-agent/node_modules/ms": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/iconv-lite": {
|
"node_modules/iconv-lite": {
|
||||||
"version": "0.4.24",
|
"version": "0.4.24",
|
||||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||||
@ -782,17 +442,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/inflight": {
|
|
||||||
"version": "1.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
|
||||||
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
|
||||||
"deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"once": "^1.3.0",
|
|
||||||
"wrappy": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/inherits": {
|
"node_modules/inherits": {
|
||||||
"version": "2.0.4",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
@ -806,80 +455,11 @@
|
|||||||
"node": ">= 0.10"
|
"node": ">= 0.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/is-fullwidth-code-point": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/is-property": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/isarray": {
|
"node_modules/isarray": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||||
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
||||||
},
|
},
|
||||||
"node_modules/long": {
|
|
||||||
"version": "5.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz",
|
|
||||||
"integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==",
|
|
||||||
"license": "Apache-2.0"
|
|
||||||
},
|
|
||||||
"node_modules/lru-cache": {
|
|
||||||
"version": "7.18.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
|
||||||
"integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
|
||||||
"license": "ISC",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/lru.min": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-FbAj6lXil6t8z4z3j0E5mfRlPzxkySotzUHwRXjlpRh10vc6AI6WN62ehZj82VG7M20rqogJ0GLwar2Xa05a8Q==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"bun": ">=1.0.0",
|
|
||||||
"deno": ">=1.30.0",
|
|
||||||
"node": ">=8.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "github",
|
|
||||||
"url": "https://github.com/sponsors/wellwelwel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/make-dir": {
|
|
||||||
"version": "3.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
|
|
||||||
"integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"semver": "^6.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/make-dir/node_modules/semver": {
|
|
||||||
"version": "6.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
|
||||||
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
|
|
||||||
"license": "ISC",
|
|
||||||
"bin": {
|
|
||||||
"semver": "bin/semver.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/media-typer": {
|
"node_modules/media-typer": {
|
||||||
"version": "0.3.0",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||||
@ -934,64 +514,6 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minimatch": {
|
|
||||||
"version": "3.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
||||||
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"brace-expansion": "^1.1.7"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "*"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/minipass": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
|
|
||||||
"license": "ISC",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/minizlib": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"minipass": "^3.0.0",
|
|
||||||
"yallist": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/minizlib/node_modules/minipass": {
|
|
||||||
"version": "3.3.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
|
|
||||||
"integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"yallist": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/mkdirp": {
|
|
||||||
"version": "1.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
|
||||||
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"bin": {
|
|
||||||
"mkdirp": "bin/cmd.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/ms": {
|
"node_modules/ms": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||||
@ -1001,7 +523,6 @@
|
|||||||
"version": "2.18.1",
|
"version": "2.18.1",
|
||||||
"resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz",
|
"resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz",
|
||||||
"integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==",
|
"integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bignumber.js": "9.0.0",
|
"bignumber.js": "9.0.0",
|
||||||
"readable-stream": "2.3.7",
|
"readable-stream": "2.3.7",
|
||||||
@ -1017,59 +538,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
},
|
},
|
||||||
"node_modules/mysql2": {
|
|
||||||
"version": "3.12.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.12.0.tgz",
|
|
||||||
"integrity": "sha512-C8fWhVysZoH63tJbX8d10IAoYCyXy4fdRFz2Ihrt9jtPILYynFEKUUzpp1U7qxzDc3tMbotvaBH+sl6bFnGZiw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"aws-ssl-profiles": "^1.1.1",
|
|
||||||
"denque": "^2.1.0",
|
|
||||||
"generate-function": "^2.3.1",
|
|
||||||
"iconv-lite": "^0.6.3",
|
|
||||||
"long": "^5.2.1",
|
|
||||||
"lru.min": "^1.0.0",
|
|
||||||
"named-placeholders": "^1.1.3",
|
|
||||||
"seq-queue": "^0.0.5",
|
|
||||||
"sqlstring": "^2.3.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 8.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/mysql2/node_modules/iconv-lite": {
|
|
||||||
"version": "0.6.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
|
||||||
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/mysql2/node_modules/sqlstring": {
|
|
||||||
"version": "2.3.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz",
|
|
||||||
"integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/named-placeholders": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"lru-cache": "^7.14.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/negotiator": {
|
"node_modules/negotiator": {
|
||||||
"version": "0.6.3",
|
"version": "0.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
||||||
@ -1078,91 +546,6 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/node": {
|
|
||||||
"version": "22.15.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/node/-/node-22.15.0.tgz",
|
|
||||||
"integrity": "sha512-qrOEL83lNt+Jbh9pekl5xQrZK+QRJz51m2IGGCu2NENgbG6Go0D1QUBvjbejP8jB2eokQpX1AorDLbKQ/FxuYA==",
|
|
||||||
"hasInstallScript": true,
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"node-bin-setup": "^1.0.0"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"node": "bin/node"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"npm": ">=5.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/node-addon-api": {
|
|
||||||
"version": "5.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",
|
|
||||||
"integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/node-bin-setup": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-bin-setup/-/node-bin-setup-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-opgw9iSCAzT2+6wJOETCpeRYAQxSopqQ2z+N6BXwIMsQQ7Zj5M8MaafQY8JMlolRR6R1UXg2WmhKp0p9lSOivg==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/node-fetch": {
|
|
||||||
"version": "2.7.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
|
|
||||||
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"whatwg-url": "^5.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "4.x || >=6.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"encoding": "^0.1.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"encoding": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/nopt": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"abbrev": "1"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"nopt": "bin/nopt.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/npmlog": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
|
|
||||||
"integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
|
|
||||||
"deprecated": "This package is no longer supported.",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"are-we-there-yet": "^2.0.0",
|
|
||||||
"console-control-strings": "^1.1.0",
|
|
||||||
"gauge": "^3.0.0",
|
|
||||||
"set-blocking": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/object-assign": {
|
|
||||||
"version": "4.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
||||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/object-inspect": {
|
"node_modules/object-inspect": {
|
||||||
"version": "1.13.2",
|
"version": "1.13.2",
|
||||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
|
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
|
||||||
@ -1193,15 +576,6 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/once": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
||||||
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"wrappy": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/parseurl": {
|
"node_modules/parseurl": {
|
||||||
"version": "1.3.3",
|
"version": "1.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
||||||
@ -1219,15 +593,6 @@
|
|||||||
"util": "^0.10.3"
|
"util": "^0.10.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/path-is-absolute": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/path-to-regexp": {
|
"node_modules/path-to-regexp": {
|
||||||
"version": "0.1.12",
|
"version": "0.1.12",
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||||
@ -1322,22 +687,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
},
|
},
|
||||||
"node_modules/rimraf": {
|
|
||||||
"version": "3.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
|
|
||||||
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
|
||||||
"deprecated": "Rimraf versions prior to v4 are no longer supported",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"glob": "^7.1.3"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"rimraf": "bin.js"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/safe-buffer": {
|
"node_modules/safe-buffer": {
|
||||||
"version": "5.2.1",
|
"version": "5.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||||
@ -1362,18 +711,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||||
},
|
},
|
||||||
"node_modules/semver": {
|
|
||||||
"version": "7.7.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
|
|
||||||
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
|
|
||||||
"license": "ISC",
|
|
||||||
"bin": {
|
|
||||||
"semver": "bin/semver.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/send": {
|
"node_modules/send": {
|
||||||
"version": "0.19.0",
|
"version": "0.19.0",
|
||||||
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
||||||
@ -1410,11 +747,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||||
},
|
},
|
||||||
"node_modules/seq-queue": {
|
|
||||||
"version": "0.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz",
|
|
||||||
"integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="
|
|
||||||
},
|
|
||||||
"node_modules/serve-static": {
|
"node_modules/serve-static": {
|
||||||
"version": "1.16.2",
|
"version": "1.16.2",
|
||||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
||||||
@ -1429,18 +761,6 @@
|
|||||||
"node": ">= 0.8.0"
|
"node": ">= 0.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/server.js": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/server.js/-/server.js-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-fO4IvzkZ09bBB++XU/gWGuzxJs0OpghSd/34mlW8coMoakLzj/+W5d1pHX+I+7H52GkBKu96UQU0K5vptNjaqg==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/set-blocking": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/set-function-length": {
|
"node_modules/set-function-length": {
|
||||||
"version": "1.2.2",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
||||||
@ -1479,12 +799,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/signal-exit": {
|
|
||||||
"version": "3.0.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
|
|
||||||
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/sqlstring": {
|
"node_modules/sqlstring": {
|
||||||
"version": "2.3.1",
|
"version": "2.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz",
|
||||||
@ -1514,49 +828,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
},
|
},
|
||||||
"node_modules/string-width": {
|
|
||||||
"version": "4.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
||||||
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"emoji-regex": "^8.0.0",
|
|
||||||
"is-fullwidth-code-point": "^3.0.0",
|
|
||||||
"strip-ansi": "^6.0.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/strip-ansi": {
|
|
||||||
"version": "6.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
||||||
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-regex": "^5.0.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tar": {
|
|
||||||
"version": "6.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
|
|
||||||
"integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"chownr": "^2.0.0",
|
|
||||||
"fs-minipass": "^2.0.0",
|
|
||||||
"minipass": "^5.0.0",
|
|
||||||
"minizlib": "^2.1.1",
|
|
||||||
"mkdirp": "^1.0.3",
|
|
||||||
"yallist": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/toidentifier": {
|
"node_modules/toidentifier": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
||||||
@ -1565,12 +836,6 @@
|
|||||||
"node": ">=0.6"
|
"node": ">=0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tr46": {
|
|
||||||
"version": "0.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
|
||||||
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/type-is": {
|
"node_modules/type-is": {
|
||||||
"version": "1.6.18",
|
"version": "1.6.18",
|
||||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
||||||
@ -1635,43 +900,6 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"node_modules/webidl-conversions": {
|
|
||||||
"version": "3.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
|
||||||
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
|
|
||||||
"license": "BSD-2-Clause"
|
|
||||||
},
|
|
||||||
"node_modules/whatwg-url": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"tr46": "~0.0.3",
|
|
||||||
"webidl-conversions": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/wide-align": {
|
|
||||||
"version": "1.1.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
|
|
||||||
"integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"string-width": "^1.0.2 || 2 || 3 || 4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/wrappy": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/yallist": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
|
||||||
"license": "ISC"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
package.json
11
package.json
@ -1,25 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "webshop",
|
"name": "sniper",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "npm install && node server.js"
|
"start": "node server.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"description": "Webshop Autohändler",
|
"description": "Webshop Autohändler",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"app-root-path": "^3.1.0",
|
|
||||||
"bcrypt": "^5.1.1",
|
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.4.7",
|
||||||
"express": "^4.21.2",
|
"express": "^4.21.2",
|
||||||
"express-session": "^1.18.1",
|
"express-session": "^1.18.1",
|
||||||
"mysql": "^2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"mysql2": "^3.12.0",
|
"path": "^0.12.7"
|
||||||
"node": "^22.15.0",
|
|
||||||
"path": "^0.12.7",
|
|
||||||
"server.js": "^1.0.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
APP_PORT=3000
|
APP_PORT=3000
|
||||||
|
|
||||||
# configuration for db access
|
# configuration for db access
|
||||||
DB_HOST=localhost
|
DB_HOST=172.0.0.1:3306
|
||||||
DB_USER=root
|
DB_USER=root
|
||||||
DB_PASSWORD=
|
DB_PASSWORD=
|
||||||
DB_DATABASE=webshop
|
DB_DATABASE=
|
||||||
|
|||||||
@ -1,38 +0,0 @@
|
|||||||
<!--
|
|
||||||
Eine Seite für die Seiten die nicht vorhanden sind.
|
|
||||||
Fehler 404 - Seite nicht gefunden
|
|
||||||
Zeigt eine Meldung und hat einen Link der zurück zur Startseite führt
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Seite nicht gefunden</title>
|
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<!-- Hauptinhalt: Fehlermeldung -->
|
|
||||||
<main class="content" style="text-align: center; padding: 80px;">
|
|
||||||
<h1>🚧 Seite nicht gefunden 🚧</h1>
|
|
||||||
<p>Diese Seite existiert nicht oder befindet sich noch in Arbeit.</p>
|
|
||||||
<!-- Button zurück zur Startseite -->
|
|
||||||
<a href="/" class="btn" style="width: auto; display: inline-block; margin-top: 20px;">Zur Startseite</a>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Fußzeiele -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
43
public/Kontakt/kontakt.html
Normal file
43
public/Kontakt/kontakt.html
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Kontakt</title>
|
||||||
|
<link rel="stylesheet" href="./Styles/Kontakt/kontakt.css">
|
||||||
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<header>
|
||||||
|
<h1>Autohändler Webshop</h1>
|
||||||
|
<div class="header-right">
|
||||||
|
<a href="/login" class="login-btn">Login</a>
|
||||||
|
<div class="cart">
|
||||||
|
<i class='bx bx-cart'></i>
|
||||||
|
<span class="cart-count">0</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<nav class="menu">
|
||||||
|
<ul class="menu-list">
|
||||||
|
<li class="menu-item"><a href="/">Startseite</a></li>
|
||||||
|
<li class="menu-item"><a href="#">Neuwagen</a></li>
|
||||||
|
<li class="menu-item"><a href="#">Gebrauchtwagen</a></li>
|
||||||
|
<li class="menu-item"><a href="#">Angebote</a></li>
|
||||||
|
<li class="menu-item"><a href="/kontakt">Kontakt</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="kontakt-container">
|
||||||
|
<h2>Kontaktieren Sie uns: </h2>
|
||||||
|
<div class="kontakt-info">
|
||||||
|
<p><i class='bx bx-map'></i> Breitwiesenstraße 20-22, 70565 Stuttgart</p>
|
||||||
|
<p><i class='bx bx-phone'></i> +49 123 456 7890</p>
|
||||||
|
<p><i class='bx bx-envelope'></i> info@autohändler.de</p>
|
||||||
|
</br>Ihr Autohändler Webshop Team</p>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -1,121 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Warenkorb</title>
|
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header wird hier dynamisch geladen -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<section style="padding: 40px 20px;">
|
|
||||||
<h1>Dein Warenkorb</h1>
|
|
||||||
<div id="warenkorb"></div>
|
|
||||||
<div id="gesamtpreis-container" style="margin-top: 20px;"></div>
|
|
||||||
<button id="zurKasseGehen" class="btn" style="margin-top: 30px;">Zur Kasse gehen</button>
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Footer wird dynamisch geladen -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
ladeWarenkorb();
|
|
||||||
|
|
||||||
document.getElementById('zurKasseGehen').addEventListener('click', function () {
|
|
||||||
window.location.href = '/bestellformular'; // Deine Bestellformular-Seite
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
function ladeWarenkorb() {
|
|
||||||
const warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
const container = document.getElementById('warenkorb');
|
|
||||||
const gesamtContainer = document.getElementById('gesamtpreis-container');
|
|
||||||
|
|
||||||
container.innerHTML = '';
|
|
||||||
gesamtContainer.innerHTML = '';
|
|
||||||
|
|
||||||
if (warenkorb.length === 0) {
|
|
||||||
container.innerHTML = '<p>Dein Warenkorb ist leer.</p>';
|
|
||||||
document.getElementById('zurKasseGehen').style.display = 'none';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let gesamtpreis = 0;
|
|
||||||
|
|
||||||
const table = document.createElement('table');
|
|
||||||
table.className = 'warenkorb-tabelle';
|
|
||||||
table.innerHTML = `
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Produkt</th>
|
|
||||||
<th>Preis (Stück)</th>
|
|
||||||
<th>Anzahl</th>
|
|
||||||
<th>Zwischensumme</th>
|
|
||||||
<th>Aktion</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody></tbody>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const tbody = table.querySelector('tbody');
|
|
||||||
|
|
||||||
warenkorb.forEach((produkt, index) => {
|
|
||||||
const zwischensumme = produkt.price * produkt.quantity;
|
|
||||||
gesamtpreis += zwischensumme;
|
|
||||||
|
|
||||||
const row = document.createElement('tr');
|
|
||||||
row.innerHTML = `
|
|
||||||
<td>${produkt.product_name}</td>
|
|
||||||
<td>${produkt.price.toFixed(2)} €</td>
|
|
||||||
<td>
|
|
||||||
<button class="menge-button" onclick="aendereMenge(${index}, -1)">-</button>
|
|
||||||
<span class="produkt-anzahl">${produkt.quantity}</span>
|
|
||||||
<button class="menge-button" onclick="aendereMenge(${index}, 1)">+</button>
|
|
||||||
</td>
|
|
||||||
<td>${zwischensumme.toFixed(2)} €</td>
|
|
||||||
<td><button onclick="entferneAusWarenkorb(${index})" class="loeschen-button">Entfernen</button></td>
|
|
||||||
`;
|
|
||||||
tbody.appendChild(row);
|
|
||||||
});
|
|
||||||
|
|
||||||
container.appendChild(table);
|
|
||||||
|
|
||||||
gesamtContainer.innerHTML = `<h3>Gesamtsumme: ${gesamtpreis.toFixed(2)} €</h3>`;
|
|
||||||
|
|
||||||
if (window.zeigeWarenkorbAnzahl) {
|
|
||||||
window.zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function entferneAusWarenkorb(index) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
warenkorb.splice(index, 1);
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
|
|
||||||
ladeWarenkorb();
|
|
||||||
}
|
|
||||||
|
|
||||||
function aendereMenge(index, aenderung) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
warenkorb[index].quantity += aenderung;
|
|
||||||
|
|
||||||
if (warenkorb[index].quantity <= 0) {
|
|
||||||
warenkorb.splice(index, 1); // Produkt löschen, wenn Menge 0 oder kleiner
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
ladeWarenkorb();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,197 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Bestellformular</title>
|
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header wird hier dynamisch geladen -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<div class="form-container">
|
|
||||||
<form method="post" id="bestellform">
|
|
||||||
<h2>Bestellformular</h2>
|
|
||||||
|
|
||||||
<label for="vorname">Vorname:</label>
|
|
||||||
<input type="text" id="Vorname" name="Vorname" required placeholder="Vorname">
|
|
||||||
|
|
||||||
<label for="nachname">Nachname:</label>
|
|
||||||
<input type="text" id="Nachname" name="Nachname" required placeholder="Nachname">
|
|
||||||
|
|
||||||
<label for="kundenNr">Kunden-Nr.:</label>
|
|
||||||
<input type="text" id="KundenNr" name="KundenNr" required placeholder="Kunden Nr.">
|
|
||||||
|
|
||||||
<label for="strasse">Straße:</label>
|
|
||||||
<input type="text" id="strasse" name="strasse" required placeholder="Strasse">
|
|
||||||
|
|
||||||
<label for="hausnummer">Hausnummer:</label>
|
|
||||||
<input type="text" id="hausnummer" name="hausnummer" required placeholder="Hausnummer">
|
|
||||||
|
|
||||||
<label for="ort">Ort:</label>
|
|
||||||
<input type="text" id="ort" name="ort" required placeholder="Ort">
|
|
||||||
|
|
||||||
<label>Artikel-Nr. / Stückzahl:</label>
|
|
||||||
|
|
||||||
<a class="button-submit" id="sendOrder">Bestellung absenden</a>
|
|
||||||
|
|
||||||
<div class="link-text-formular">
|
|
||||||
<br>
|
|
||||||
<p>Zurück zum <a href="/Warenkorb">Warenkorb</a></p>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const user_id = sessionStorage.getItem('user_id');
|
|
||||||
const email = sessionStorage.getItem('email');
|
|
||||||
const vorname = sessionStorage.getItem('vorname');
|
|
||||||
const nachname = sessionStorage.getItem('nachname');
|
|
||||||
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
const kundenNrInput = document.getElementById('KundenNr');
|
|
||||||
const VornameInput = document.getElementById('Vorname');
|
|
||||||
const NachnameInput = document.getElementById('Nachname');
|
|
||||||
|
|
||||||
const isLoggedIn = user_id && vorname && nachname;
|
|
||||||
|
|
||||||
if (isLoggedIn) {
|
|
||||||
kundenNrInput.value = user_id;
|
|
||||||
VornameInput.value = vorname;
|
|
||||||
NachnameInput.value = nachname;
|
|
||||||
|
|
||||||
// Felder sperren, damit sie nicht bearbeitet werden können
|
|
||||||
kundenNrInput.readOnly = true;
|
|
||||||
VornameInput.readOnly = true;
|
|
||||||
NachnameInput.readOnly = true;
|
|
||||||
} else {
|
|
||||||
// Felder leer lassen & bearbeitbar
|
|
||||||
kundenNrInput.readOnly = false;
|
|
||||||
VornameInput.readOnly = false;
|
|
||||||
NachnameInput.readOnly = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("User ID from sessionStorage:", user_id);
|
|
||||||
console.log("E-Mail from sessionStorage:", email);
|
|
||||||
console.log("Vorname from sessionStorage:", vorname);
|
|
||||||
console.log("Nachname from sessionStorage:", nachname);
|
|
||||||
|
|
||||||
|
|
||||||
const sendButton = document.getElementById('sendOrder');
|
|
||||||
ladeWarenkorb();
|
|
||||||
|
|
||||||
// Bestellung absenden
|
|
||||||
sendButton.addEventListener('click', async function (event) {
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
const form = document.getElementById('bestellform');
|
|
||||||
|
|
||||||
// Kundendaten einsammeln
|
|
||||||
const userData = {
|
|
||||||
vorname: form.Vorname.value.trim(),
|
|
||||||
nachname: form.Nachname.value.trim(),
|
|
||||||
kundenNr: form.KundenNr.value.trim(),
|
|
||||||
strasse: form.strasse.value.trim(),
|
|
||||||
hausnummer: form.hausnummer.value.trim(),
|
|
||||||
ort: form.ort.value.trim()
|
|
||||||
};
|
|
||||||
|
|
||||||
// Artikel einsammeln
|
|
||||||
const artikelInputs = document.querySelectorAll('.Artikel');
|
|
||||||
const produkte = [];
|
|
||||||
|
|
||||||
artikelInputs.forEach(artikel => {
|
|
||||||
const artikelNrInput = artikel.querySelector('.ArtikelNrText');
|
|
||||||
const stueckzahlInput = artikel.querySelector('.StueckzahlText');
|
|
||||||
|
|
||||||
if (artikelNrInput && artikelNrInput.value.trim() !== '') {
|
|
||||||
produkte.push({
|
|
||||||
product_id: parseInt(artikelNrInput.value.trim(), 10),
|
|
||||||
quantity: parseInt(stueckzahlInput.value.trim(), 10) || 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (produkte.length === 0) {
|
|
||||||
alert('Bitte mindestens ein Produkt angeben!');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const payload = {
|
|
||||||
user_id: parseInt(userData.kundenNr, 10),
|
|
||||||
produkte: produkte
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
const response = await fetch('/api/bestellung', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify(payload)
|
|
||||||
});
|
|
||||||
|
|
||||||
const result = await response.json();
|
|
||||||
|
|
||||||
if (response.ok) {
|
|
||||||
// Bestellung erfolgreich → Weiterleitung
|
|
||||||
warenkorbLeeren();
|
|
||||||
window.location.href = "/bestellung";
|
|
||||||
} else {
|
|
||||||
alert('Fehler: ' + result.message);
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Fehler beim Abschicken der Bestellung:', error);
|
|
||||||
alert('Serverfehler beim Abschicken der Bestellung.');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
function ladeWarenkorb() {
|
|
||||||
// RICHTIG lesen: aus localStorage (nicht sessionStorage!)
|
|
||||||
const warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const formular = document.getElementById('bestellform');
|
|
||||||
const sendButton = document.getElementById('sendOrder');
|
|
||||||
|
|
||||||
if (warenkorb.length === 0) {
|
|
||||||
console.log('Kein Warenkorb gefunden oder Warenkorb ist leer.');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
warenkorb.forEach(produkt => {
|
|
||||||
const artikelDiv = document.createElement('div');
|
|
||||||
artikelDiv.className = 'Artikel';
|
|
||||||
artikelDiv.innerHTML = `
|
|
||||||
<input type="text" class="ArtikelNrText" name="ArtikelNr" value="${produkt.product_id}" required readonly ="Artikel Nr.">
|
|
||||||
<input type="text" class="StueckzahlText" name="Stueckzahl" value="${produkt.quantity}" required readonly ="Anzahl">
|
|
||||||
<div class="verfuegbarkeit"></div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
formular.insertBefore(artikelDiv, sendButton);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
window.warenkorbLeeren = function () {
|
|
||||||
localStorage.removeItem('warenkorb'); // Oder: localStorage.setItem('warenkorb', '[]');
|
|
||||||
ladeWarenkorb(); // Aktualisiert die Ansicht
|
|
||||||
if (window.zeigeWarenkorbAnzahl) zeigeWarenkorbAnzahl(); // Warenkorb-Zähler im Header aktualisieren
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Footer wird dynamisch geladen -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,105 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Ihre Bestellung</title>
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Header wird hier dynamisch geladen -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<h2>Ihre Bestellung:</h2>
|
|
||||||
<div id="bestellung">
|
|
||||||
<!-- Platzhalter für die Bestellinformationen -->
|
|
||||||
<div class="bestell-info-card">
|
|
||||||
<p><strong>Kundennummer:</strong> <span id="kundenNr"></span></p>
|
|
||||||
<p><strong>Produkt-ID:</strong> <span id="produktId"></span></p>
|
|
||||||
<p><strong>Produktname:</strong> <span id="produktName"></span></p>
|
|
||||||
<p><strong>Preis:</strong> <span id="preis"></span></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
async function ladeBestellung() {
|
|
||||||
const user_id = sessionStorage.getItem('user_id');
|
|
||||||
if (!user_id) {
|
|
||||||
alert('Sie sind nicht eingeloggt! Bitte loggen Sie sich ein.');
|
|
||||||
window.location.href = '/login';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
const response = await fetch('/api/bestellung/daten', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify({user_id: user_id})
|
|
||||||
});
|
|
||||||
|
|
||||||
if (response.ok) {
|
|
||||||
const daten = await response.json();
|
|
||||||
const bestellungContainer = document.getElementById('bestellung');
|
|
||||||
bestellungContainer.innerHTML = '';
|
|
||||||
|
|
||||||
const bestellungen = {};
|
|
||||||
|
|
||||||
daten.forEach(item => {
|
|
||||||
if (!bestellungen[item.order_id]) {
|
|
||||||
bestellungen[item.order_id] = {
|
|
||||||
total: item.order_total,
|
|
||||||
produkte: []
|
|
||||||
};
|
|
||||||
}
|
|
||||||
bestellungen[item.order_id].produkte.push({
|
|
||||||
name: item.product_name,
|
|
||||||
preis: item.product_price,
|
|
||||||
quantity: item.quantity
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
for (const orderId in bestellungen) {
|
|
||||||
const bestellung = bestellungen[orderId];
|
|
||||||
const bestellCard = document.createElement('div');
|
|
||||||
bestellCard.className = 'bestell-info-card';
|
|
||||||
|
|
||||||
let produkteHTML = '';
|
|
||||||
bestellung.produkte.forEach(produkt => {
|
|
||||||
produkteHTML += `
|
|
||||||
<p>• ${produkt.name} — ${produkt.quantity} Stück — Preis: ${produkt.preis.toFixed(2)} €</p>
|
|
||||||
`;
|
|
||||||
});
|
|
||||||
|
|
||||||
bestellCard.innerHTML = `
|
|
||||||
<h3>Bestellnummer: ${orderId}</h3>
|
|
||||||
${produkteHTML}
|
|
||||||
</br>
|
|
||||||
<p><strong>Gesamtsumme:</strong> ${bestellung.total.toFixed(2)} €</p>
|
|
||||||
`;
|
|
||||||
|
|
||||||
bestellungContainer.appendChild(bestellCard);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (response.status === 404) {
|
|
||||||
document.getElementById('bestellung').innerHTML = '<p>Keine Bestellungen gefunden.</p>';
|
|
||||||
} else {
|
|
||||||
console.error('Fehler beim Laden der Bestellungen.');
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Fehler: ', error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', ladeBestellung);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Footer wird dynamisch geladen -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
<!--
|
|
||||||
Fußzeile des Webshops
|
|
||||||
Zeigt einen Copyright-Hinweis, die Links zum Impressum und Datenschutz sind verlinkt (keine Funktion)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<footer class="footer">
|
|
||||||
<!-- Copyright-Hinweis -->
|
|
||||||
<p>© 2025 Autohändler Webshop – Alle Rechte vorbehalten</p>
|
|
||||||
<!-- Links zu Impressum und Datenschutz (keine Funktion) -->
|
|
||||||
<p>
|
|
||||||
<a href="/impressum">Impressum</a> |
|
|
||||||
<a href="/datenschutz">Datenschutz</a>
|
|
||||||
</p>
|
|
||||||
</footer>
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
<!--
|
|
||||||
Header-Bereich Einbindung
|
|
||||||
zeigt Logo, Link zur Startseite, Warenkorb (beispielhaft, keine Funktion) und Menüleiste an
|
|
||||||
-->
|
|
||||||
<header>
|
|
||||||
<!-- Logo und Shop-Titel -->
|
|
||||||
<a href="/" class="logo-link">
|
|
||||||
<div class="logo-container">
|
|
||||||
<img src="/images/Logo.png" alt="Modellauto-Shop Logo" class="logo-img">
|
|
||||||
<h1>Modellauto - Shop</h1>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<!-- Auf der rechten Seite des Headers befindet sich der Login-Button und der Warenkorb -->
|
|
||||||
<div class="header-right">
|
|
||||||
<!-- Login-Button -->
|
|
||||||
<a href="/login" class="login-btn">
|
|
||||||
<i class='bx bx-user'></i> Login
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<!-- Warenkorb-Button mit Icon und Anzeige der Artikelanzahl -->
|
|
||||||
<a href="/warenkorb" class="cart">
|
|
||||||
<i class='bx bx-cart'></i>
|
|
||||||
<span class="cart-count" id="cart-count">0</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<!-- Navigationsmenü -->
|
|
||||||
<nav class="menu">
|
|
||||||
<ul class="menu-list">
|
|
||||||
<!-- Startseite Link -->
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="/"><i class='bx bx-home'></i> Startseite</a>
|
|
||||||
</li>
|
|
||||||
<!-- Shop Link mit Dropdown-Menü für die verschiedene Unterkategorien -->
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="/shop"><i class='bx bx-store'></i> Shop</a>
|
|
||||||
<ul class="submenu">
|
|
||||||
<li><a href="/shop/motorrad"> Motorräder</a></li>
|
|
||||||
<li><a href="/shop/oldtimer"> Oldtimer</a></li>
|
|
||||||
<li><a href="/shop/sportwagen"> Sportwagen</a></li>
|
|
||||||
<li><a href="/shop/lkw"> LKWs</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<!-- Link zu über uns-->
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="/ueberuns"><i class='bx bx-group'></i> Über uns</a>
|
|
||||||
</li>
|
|
||||||
<!-- Link zur Kontaktseite-->
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="/kontaktformular"><i class='bx bx-envelope'></i> Kontakt</a>
|
|
||||||
</li>
|
|
||||||
<!-- Link zum Bestellformular-->
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="/bestellung"><i class='bx bx-notepad'></i> Bestellungen</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
@ -1,58 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Kontaktformular</title>
|
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<section style="padding: 40px 20px; max-width: 700px; margin: 0 auto;">
|
|
||||||
<h1>Kontaktieren Sie uns</h1>
|
|
||||||
<p style="margin-bottom: 30px;">Sie haben Fragen oder Anregungen? Schreiben Sie uns – wir melden uns
|
|
||||||
schnellstmöglich!</p>
|
|
||||||
|
|
||||||
<form id="contact-form">
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="text" name="name" placeholder="Ihr Name" required>
|
|
||||||
<i class='bx bx-user'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="email" name="email" placeholder="Ihre E-Mail-Adresse" required>
|
|
||||||
<i class='bx bx-envelope'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="text" name="betreff" placeholder="Betreff" required>
|
|
||||||
<i class='bx bx-edit-alt'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<textarea name="nachricht" placeholder="Ihre Nachricht" rows="6"
|
|
||||||
style="width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px;"
|
|
||||||
required></textarea>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn">Nachricht senden</button>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
document.getElementById('contact-form').addEventListener('submit', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
alert('Vielen Dank für Ihre Nachricht! Wir melden uns bald bei Ihnen.');
|
|
||||||
this.reset(); // Formular leeren
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,93 +1,33 @@
|
|||||||
<!--
|
|
||||||
Login-Seite für den Webshop.
|
|
||||||
Die Benutzer können sich mit ihrem Benutzernamen und Passwort anmelden oder sich registreren.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login</title>
|
|
||||||
<!-- Login-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="./Styles/login/login.css">
|
<link rel="stylesheet" href="./Styles/login/login.css">
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
<title>Login</title>
|
<title>Login</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Header -->
|
<div class="wrapper">
|
||||||
<div id="header"></div>
|
<form action="login.php" method="POST">
|
||||||
|
<h1>Login</h1>
|
||||||
|
<div class="input-box">
|
||||||
|
<input type="text" name="username" placeholder="Username" required>
|
||||||
|
<i class='bx bxs-user'></i>
|
||||||
|
</div>
|
||||||
|
<div class="input-box">
|
||||||
|
<input type="password" id="password" name="password" placeholder="Passwort" required>
|
||||||
|
<i class='bx bxs-lock-alt' id="togglePassword" onclick="togglePassword()"></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
<main class="main-content">
|
<button type="submit" class="btn">Login</button>
|
||||||
<div class="login-container">
|
|
||||||
<h2 class="title">Login</h2>
|
|
||||||
|
|
||||||
<!-- Login-Formular -->
|
|
||||||
<form class="login-form">
|
|
||||||
|
|
||||||
<!-- Eingabefeld für Benutzername -->
|
|
||||||
<div class="input-group">
|
|
||||||
<input id="email" type="email" placeholder="E-Mail" required/>
|
|
||||||
<i class="icon fas fa-user"></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Eingabefeld für Passwort -->
|
|
||||||
<div class="input-group">
|
|
||||||
<input id="password" type="password" placeholder="Passwort" required/>
|
|
||||||
<i class="icon fas fa-lock"></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Login-Button -->
|
|
||||||
<button type="submit" class="login-btn" id="submit">Login</button>
|
|
||||||
|
|
||||||
<!-- Link zur Registrierungsseite -->
|
|
||||||
<p class="register-text">
|
|
||||||
Noch keinen Account? <a href="/registrieren">Registrieren</a>
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
document.querySelector('form').addEventListener('submit', async (event) => {
|
|
||||||
event.preventDefault()
|
|
||||||
|
|
||||||
const email = document.getElementById('email').value
|
|
||||||
const password = document.getElementById('password').value
|
|
||||||
|
|
||||||
try {
|
|
||||||
const response = await fetch('/api/user/login', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify({email, password})
|
|
||||||
})
|
|
||||||
if (response.ok) {
|
|
||||||
const data = await response.json();
|
|
||||||
sessionStorage.setItem("user_id", data.id)
|
|
||||||
sessionStorage.setItem("vorname", data.name)
|
|
||||||
sessionStorage.setItem("nachname", data.lower_name)
|
|
||||||
alert('Login erfolgreich!');
|
|
||||||
window.location.href = '/'; // Redirect to home page after login
|
|
||||||
} else {
|
|
||||||
const errorData = await response.json()
|
|
||||||
alert('Login fehlgeschlagen: ' + (errorData.message || 'Unbekannter Fehler'))
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Fehler beim Login: ', error)
|
|
||||||
alert('Fehler beim Senden des Logins.')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Fußzeile -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
|
|
||||||
|
<div class="register-link">
|
||||||
|
<br>
|
||||||
|
<p>Noch keinen Account? <a href="/registrieren">Registrieren</a></p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<script src="./script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
45
public/registrieren/passwordValidation.js
Normal file
45
public/registrieren/passwordValidation.js
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
// Funktion, um die Stärke des Passworts zu bewerten
|
||||||
|
function checkPasswordStrength(password) {
|
||||||
|
const strengthBar = document.getElementById('passwordStrengthBar');
|
||||||
|
const passwordStrength = evaluatePasswordStrength(password);
|
||||||
|
|
||||||
|
// Aktualisiere den Sicherheitsbalken basierend auf der Stärke
|
||||||
|
if (passwordStrength === 'weak') {
|
||||||
|
strengthBar.classList.remove('medium', 'strong');
|
||||||
|
strengthBar.classList.add('weak');
|
||||||
|
} else if (passwordStrength === 'medium') {
|
||||||
|
strengthBar.classList.remove('weak', 'strong');
|
||||||
|
strengthBar.classList.add('medium');
|
||||||
|
} else {
|
||||||
|
strengthBar.classList.remove('weak', 'medium');
|
||||||
|
strengthBar.classList.add('strong');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Funktion zur Beurteilung der Passwortstärke
|
||||||
|
function evaluatePasswordStrength(password) {
|
||||||
|
if (password.length >= 8 && /[A-Z]/.test(password) && /[0-9]/.test(password)) {
|
||||||
|
return 'strong';
|
||||||
|
} else if (password.length >= 6) {
|
||||||
|
return 'medium';
|
||||||
|
} else {
|
||||||
|
return 'weak';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Event Listener für das Passwortfeld
|
||||||
|
document.getElementById('regPassword').addEventListener('input', function() {
|
||||||
|
checkPasswordStrength(this.value);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Event Listener für das Bestätigungs-Passwortfeld
|
||||||
|
document.getElementById('confirmPassword').addEventListener('input', function() {
|
||||||
|
const password = document.getElementById('regPassword').value;
|
||||||
|
const confirmPassword = this.value;
|
||||||
|
|
||||||
|
if (password !== confirmPassword) {
|
||||||
|
this.setCustomValidity("Die Passwörter stimmen nicht überein.");
|
||||||
|
} else {
|
||||||
|
this.setCustomValidity("");
|
||||||
|
}
|
||||||
|
});
|
||||||
@ -1,123 +1,51 @@
|
|||||||
<!--
|
|
||||||
Diese Seite beinhaltet ein Registrierungsformular für neue Benutzer.
|
|
||||||
Der Benutzer kann Vorname, Nachname, E-Mail-Adresse und ein Passwort eingeben.
|
|
||||||
Header und Footer werden dynamisch geladen.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<!-- Registrieren-CSS-Datei -->
|
<link rel="stylesheet" href="./Styles/registrieren/registrieren.css">
|
||||||
<link rel="stylesheet" href="./Styles/registrieren/registrieren.css">
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
<!-- Haupt-CSS-Datei -->
|
<title>Registrieren</title>
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
<title>Registrieren</title>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page-container">
|
<div class="wrapper">
|
||||||
|
<form action="register.php" method="POST">
|
||||||
|
<h1>Registrieren</h1>
|
||||||
|
|
||||||
<!-- Header -->
|
<div class="input-box">
|
||||||
<div id="header"></div>
|
<input type="text" name="name" placeholder="Voller Name" required>
|
||||||
|
<i class='bx bxs-user'></i>
|
||||||
|
</div>
|
||||||
|
<div class="input-box">
|
||||||
|
<input type="text" name="username" placeholder="Username" required>
|
||||||
|
<i class='bx bxs-user'></i>
|
||||||
|
</div>
|
||||||
|
<div class="input-box">
|
||||||
|
<input type="email" name="email" placeholder="E-Mail" required>
|
||||||
|
<i class='bx bxs-envelope'></i>
|
||||||
|
</div>
|
||||||
|
<div class="input-box">
|
||||||
|
<input type="password" id="regPassword" name="password" placeholder="Passwort" required>
|
||||||
|
<i class='bx bxs-lock-alt'></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Registrierungsformular -->
|
<div class="input-box">
|
||||||
<main class="content-wrapper">
|
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen" required>
|
||||||
<!-- Formular für Registrierung -->
|
<i class='bx bxs-lock-alt'></i>
|
||||||
<div class="register-wrapper">
|
</div>
|
||||||
<form action="register.php" method="POST">
|
|
||||||
<h2 class="title">Registrieren</h2>
|
|
||||||
|
|
||||||
<div class="input-box">
|
<!-- Sicherheitsbalken -->
|
||||||
<input type="text" name="vorname" placeholder="Vorname" required id="vorname">
|
<div id="passwordStrengthBar" class="password-strength-bar"></div>
|
||||||
<i class='bx bxs-user'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="text" name="nachname" placeholder="Nachname" required id="nachname">
|
|
||||||
<i class='bx bxs-user'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="email" name="email" placeholder="E-Mail" required id="email">
|
|
||||||
<i class='bx bxs-envelope'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="password" id="regPassword" name="password" placeholder="Passwort" required>
|
|
||||||
<i class='bx bxs-lock-alt'></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Eingabe: Passwort bestätigen -->
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen"
|
|
||||||
required>
|
|
||||||
<i class='bx bxs-lock-alt'></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button type="submit" class="btn" id="register">Registrieren</button>
|
<button type="submit" class="btn">Registrieren</button>
|
||||||
|
|
||||||
<!-- Link zum Login für bestehende Nutzer -->
|
|
||||||
<div class="register-link">
|
|
||||||
<br>
|
|
||||||
<p>Bereits ein Konto? <a href="/login">Login</a></p>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
document.querySelector('form').addEventListener('submit', async (event) => {
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
const passwordEl = document.getElementById('regPassword')
|
|
||||||
const password = passwordEl.value
|
|
||||||
const confirmPasswordEl = document.getElementById('confirmPassword')
|
|
||||||
const confirmPassword = confirmPasswordEl.value
|
|
||||||
|
|
||||||
if (password !== confirmPassword) {
|
|
||||||
passwordEl.value = ''
|
|
||||||
confirmPasswordEl.value = ''
|
|
||||||
alert('Die Passwörter stimmen nicht überein.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const formData = {
|
|
||||||
name: document.getElementById('vorname').value,
|
|
||||||
lower_name: document.getElementById('nachname').value,
|
|
||||||
email: document.getElementById('email').value,
|
|
||||||
passwd: document.getElementById('regPassword').value,
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
const response = await fetch('/api/user/registration', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify(formData)
|
|
||||||
})
|
|
||||||
if (response.ok) {
|
|
||||||
const data = await response.json();
|
|
||||||
sessionStorage.setItem("user_id", data.id)
|
|
||||||
sessionStorage.setItem("vorname", data.name)
|
|
||||||
sessionStorage.setItem("nachname", data.lower_name)
|
|
||||||
alert('Nutzer erfolgreich hinzugefügt! Ihre Kundennummer: ' + data.id)
|
|
||||||
window.location.href = '/'
|
|
||||||
} else {
|
|
||||||
alert('Fehler bei der Registrierung.')
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Fehler: ', error)
|
|
||||||
alert('Fehler beim Senden des Formulars.')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<!-- Fußzeiele -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
|
|
||||||
|
<div class="register-link">
|
||||||
|
<br>
|
||||||
|
<p>Bereits ein Konto? <a href="/login">Login</a></p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<script src="./passwordValidation.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,110 +0,0 @@
|
|||||||
<!--
|
|
||||||
Diese Seite zeigt alle Produkte des Webshops an.
|
|
||||||
Produkte werden dynamisch von der API geladen.
|
|
||||||
Bei einem Fehler wird eine passende Fehlermeldung angezeigt.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Shop</title>
|
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<!-- Hauptinhalt -->
|
|
||||||
<section style="padding: 0px 30px; text-align: left;">
|
|
||||||
<h1>Willkommen im Webshop</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<!-- "Container" für die dynamisch geladenen Produktkarten -->
|
|
||||||
<section class="card-grid" id="products">
|
|
||||||
<!-- Produkte werden hier eingefügt -->
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Fußzeile -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Funktion zum Hinzufügen zum Warenkorb
|
|
||||||
function zumWarenkorbHinzufuegen(product) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const existingProduct = warenkorb.find(p => p.product_id === product.id);
|
|
||||||
|
|
||||||
if (existingProduct) {
|
|
||||||
existingProduct.quantity += 1; // Wenn schon vorhanden, Anzahl erhöhen
|
|
||||||
} else {
|
|
||||||
warenkorb.push({
|
|
||||||
product_id: product.id,
|
|
||||||
product_name: product.name,
|
|
||||||
price: product.price,
|
|
||||||
quantity: 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
alert(`${product.name} wurde zum Warenkorb hinzugefügt!`);
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Produkte laden
|
|
||||||
// Daten von der API abrufen
|
|
||||||
fetch('/api/products')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(products => {
|
|
||||||
const container = document.getElementById('products');
|
|
||||||
container.innerHTML = '';
|
|
||||||
|
|
||||||
// Für jedes Produkt eine eigene Karte erstellen und einfügen
|
|
||||||
products.forEach(product => {
|
|
||||||
// Neues div-Element für die Produktkarte
|
|
||||||
const card = document.createElement('div');
|
|
||||||
// CSS-Styling hinzufügen
|
|
||||||
card.classList.add('card');
|
|
||||||
// HTML-Struktur der Produktkarte
|
|
||||||
card.innerHTML = `
|
|
||||||
<img src="${product.image_url}" alt="${product.name}">
|
|
||||||
<h3>${product.name}</h3>
|
|
||||||
<p>Preis: ${product.price.toFixed(2)} €</p>
|
|
||||||
<p>${product.description}</p>
|
|
||||||
<p>Artikel Nr: ${product.id}</p>
|
|
||||||
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const addToCartButton = card.querySelector('.add-to-cart');
|
|
||||||
addToCartButton.addEventListener('click', () => {
|
|
||||||
zumWarenkorbHinzufuegen(product);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Karte in den Container einfügen
|
|
||||||
container.appendChild(card);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
// Fehlermeldung
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Fehler beim Laden der Produkte:', err);
|
|
||||||
|
|
||||||
// Fehlermeldung auf der Seite anzeigen
|
|
||||||
const container = document.getElementById('products');
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="error-message">
|
|
||||||
<h3>Fehler beim Laden der Produkte</h3>
|
|
||||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
|
||||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
|
||||||
</div>`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,108 +0,0 @@
|
|||||||
<!--
|
|
||||||
Diese Seite zeigt alle LKW-Produkte des Webshops an.
|
|
||||||
Die Produkte werden dynamisch von der API geladen.
|
|
||||||
Bei einem Fehler wird eine passende Fehlermeldung angezeigt.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Shop - LKW's</title>
|
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<!-- Hauptinhalt -->
|
|
||||||
<main>
|
|
||||||
<section style="padding: 0px 30px; text-align: left;">
|
|
||||||
<h1>Unsere LKW Produkte</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="card-grid" id="products_lkw">
|
|
||||||
<!-- Dynamische Produkte (filtern nach Motorrad) -->
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Fußzeile -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// API-Abfrage, um Lkw-Produkte zu laden
|
|
||||||
// Funktion zum Hinzufügen zum Warenkorb
|
|
||||||
function zumWarenkorbHinzufuegen(product) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const existingProduct = warenkorb.find(p => p.product_id === product.id);
|
|
||||||
|
|
||||||
if (existingProduct) {
|
|
||||||
existingProduct.quantity += 1; // Wenn schon vorhanden, Anzahl erhöhen
|
|
||||||
} else {
|
|
||||||
warenkorb.push({
|
|
||||||
product_id: product.id,
|
|
||||||
product_name: product.name,
|
|
||||||
price: product.price,
|
|
||||||
quantity: 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
alert(`${product.name} wurde zum Warenkorb hinzugefügt!`);
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Produkte laden
|
|
||||||
fetch('/api/products/lkw')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(products => {
|
|
||||||
const container = document.getElementById('products_lkw');
|
|
||||||
container.innerHTML = '';
|
|
||||||
|
|
||||||
// Für jedes Produkt eine Karte erstellen
|
|
||||||
products.forEach(product => {
|
|
||||||
const card = document.createElement('div');
|
|
||||||
card.classList.add('card');
|
|
||||||
card.innerHTML = `
|
|
||||||
<img src="${product.image_url}" alt="${product.name}">
|
|
||||||
<h3>${product.name}</h3>
|
|
||||||
<p>Preis: ${product.price.toFixed(2)} €</p>
|
|
||||||
<p>${product.description}</p>
|
|
||||||
<p>Artikel Nr: ${product.id}</p>
|
|
||||||
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const addToCartButton = card.querySelector('.add-to-cart');
|
|
||||||
addToCartButton.addEventListener('click', () => {
|
|
||||||
zumWarenkorbHinzufuegen(product);
|
|
||||||
});
|
|
||||||
|
|
||||||
container.appendChild(card);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
// Fehlerbehandlung
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Fehler beim Laden der Produkte:', err);
|
|
||||||
|
|
||||||
// Anzeige einer Fehlermeldung auf der Webseite
|
|
||||||
const container = document.getElementById('products_lkw');
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="error-message">
|
|
||||||
<h3>Fehler beim Laden der Produkte</h3>
|
|
||||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
|
||||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
|
||||||
</div>`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,105 +0,0 @@
|
|||||||
<!--
|
|
||||||
Diese Seite zeigt alle Motorrad-Produkte des Webshops an.
|
|
||||||
Produkte werden dynamisch von der API geladen.
|
|
||||||
Bei einem Fehler wird eine passende Fehlermeldung angezeigt.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Shop - Motorräder</title>
|
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<!-- Hauptinhalt -->
|
|
||||||
<main class="main-content">
|
|
||||||
<section style="padding: 0px 30px; text-align: left;">
|
|
||||||
<h1>Unsere Motorrad Produkte</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="card-grid" id="products_motorrad">
|
|
||||||
<!-- Produkte -->
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Fußzeile -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Funktion zum Hinzufügen zum Warenkorb
|
|
||||||
function zumWarenkorbHinzufuegen(product) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const existingProduct = warenkorb.find(p => p.product_id === product.id);
|
|
||||||
|
|
||||||
if (existingProduct) {
|
|
||||||
existingProduct.quantity += 1; // Wenn schon vorhanden, Anzahl erhöhen
|
|
||||||
} else {
|
|
||||||
warenkorb.push({
|
|
||||||
product_id: product.id,
|
|
||||||
product_name: product.name,
|
|
||||||
price: product.price,
|
|
||||||
quantity: 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
alert(`${product.name} wurde zum Warenkorb hinzugefügt!`);
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Produkte laden
|
|
||||||
fetch('/api/products/motorrad')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(products => {
|
|
||||||
const container = document.getElementById('products_motorrad');
|
|
||||||
container.innerHTML = '';
|
|
||||||
|
|
||||||
// Für jedes Produkt eine Karte erstellen
|
|
||||||
products.forEach(product => {
|
|
||||||
const card = document.createElement('div');
|
|
||||||
card.classList.add('card');
|
|
||||||
card.innerHTML = `
|
|
||||||
<img src="${product.image_url}" alt="${product.name}">
|
|
||||||
<h3>${product.name}</h3>
|
|
||||||
<p>Preis: ${product.price.toFixed(2)} €</p>
|
|
||||||
<p>${product.description}</p>
|
|
||||||
<p>Artikel Nr: ${product.id}</p>
|
|
||||||
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const addToCartButton = card.querySelector('.add-to-cart');
|
|
||||||
addToCartButton.addEventListener('click', () => {
|
|
||||||
zumWarenkorbHinzufuegen(product);
|
|
||||||
});
|
|
||||||
|
|
||||||
container.appendChild(card);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
// Fehlermeldung
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Fehler beim Laden der Produkte:', err);
|
|
||||||
|
|
||||||
const container = document.getElementById('products_motorrad');
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="error-message">
|
|
||||||
<h3>Fehler beim Laden der Produkte</h3>
|
|
||||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
|
||||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
|
||||||
</div>`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<!--
|
|
||||||
Diese Seite zeigt alle Oldtimer-Produkte des Webshops an.
|
|
||||||
Produkte werden dynamisch von der API geladen.
|
|
||||||
Bei einem Fehler wird eine passende Fehlermeldung angezeigt.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Shop - Oldtimer</title>
|
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<!-- Hauptinhalt -->
|
|
||||||
<main class="main-content">
|
|
||||||
<section style="padding: 0px 30px; text-align: left;">
|
|
||||||
<h1>Unsere Oldtimer Produkte</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="card-grid" id="products_oldtimer">
|
|
||||||
<!-- Produkte -->
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Fußzeile -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Funktion zum Hinzufügen zum Warenkorb
|
|
||||||
function zumWarenkorbHinzufuegen(product) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const existingProduct = warenkorb.find(p => p.product_id === product.id);
|
|
||||||
|
|
||||||
if (existingProduct) {
|
|
||||||
existingProduct.quantity += 1; // Wenn schon vorhanden, Anzahl erhöhen
|
|
||||||
} else {
|
|
||||||
warenkorb.push({
|
|
||||||
product_id: product.id,
|
|
||||||
product_name: product.name,
|
|
||||||
price: product.price,
|
|
||||||
quantity: 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
alert(`${product.name} wurde zum Warenkorb hinzugefügt!`);
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Produkte laden
|
|
||||||
fetch('/api/products/oldtimer')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(products => {
|
|
||||||
const container = document.getElementById('products_oldtimer');
|
|
||||||
container.innerHTML = ''; // sicherheitshalber leeren
|
|
||||||
|
|
||||||
// Für jedes Produkt eine Karte erstellen
|
|
||||||
products.forEach(product => {
|
|
||||||
// Neues div für eine Produktkarte
|
|
||||||
const card = document.createElement('div');
|
|
||||||
// CSS-Styling hinzufügen
|
|
||||||
card.classList.add('card');
|
|
||||||
// Die Karte mit Produktdaten füllen
|
|
||||||
card.innerHTML = `
|
|
||||||
<img src="${product.image_url}" alt="${product.name}">
|
|
||||||
<h3>${product.name}</h3>
|
|
||||||
<p>Preis: ${product.price.toFixed(2)} €</p>
|
|
||||||
<p>${product.description}</p>
|
|
||||||
<p>Artikel Nr: ${product.id}</p>
|
|
||||||
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const addToCartButton = card.querySelector('.add-to-cart');
|
|
||||||
addToCartButton.addEventListener('click', () => {
|
|
||||||
zumWarenkorbHinzufuegen(product);
|
|
||||||
});
|
|
||||||
|
|
||||||
container.appendChild(card);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
// Fehlerbehandlung
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Fehler beim Laden der Produkte:', err);
|
|
||||||
|
|
||||||
// Anzeige einer Fehlermeldung auf der Webseite
|
|
||||||
|
|
||||||
const container = document.getElementById('products_oldtimer');
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="error-message">
|
|
||||||
<h3>Fehler beim Laden der Produkte</h3>
|
|
||||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
|
||||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
|
||||||
</div>`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,107 +0,0 @@
|
|||||||
<!--
|
|
||||||
Diese Seite zeigt alle Sportwagen-Produkte des Webshops an.
|
|
||||||
Die Produkte werden dynamisch von der API geladen.
|
|
||||||
Bei einem Fehler wird eine passende Fehlermeldung angezeigt.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Shop - Sportwagen</title>
|
|
||||||
<!-- Haupt-CSS-Datei -->
|
|
||||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<!-- Header -->
|
|
||||||
<div id="header"></div>
|
|
||||||
|
|
||||||
<!-- Hauptinhalt -->
|
|
||||||
<main>
|
|
||||||
<section style="padding: 0px 30px; text-align: left;">
|
|
||||||
<h1>Unsere Sportwagen Produkte</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="card-grid" id="products_sportwagen">
|
|
||||||
<!-- Einbindung Dynamische Produkte -->
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Funktion zum Hinzufügen zum Warenkorb
|
|
||||||
function zumWarenkorbHinzufuegen(product) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const existingProduct = warenkorb.find(p => p.product_id === product.id);
|
|
||||||
|
|
||||||
if (existingProduct) {
|
|
||||||
existingProduct.quantity += 1; // Wenn schon vorhanden, Anzahl erhöhen
|
|
||||||
} else {
|
|
||||||
warenkorb.push({
|
|
||||||
product_id: product.id,
|
|
||||||
product_name: product.name,
|
|
||||||
price: product.price,
|
|
||||||
quantity: 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
alert(`${product.name} wurde zum Warenkorb hinzugefügt!`);
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Produkte laden
|
|
||||||
fetch('/api/products/sportwagen')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(products => {
|
|
||||||
const container = document.getElementById('products_sportwagen');
|
|
||||||
container.innerHTML = '';
|
|
||||||
|
|
||||||
// Für jedes Produkt eine Karte erstellen
|
|
||||||
products.forEach(product => {
|
|
||||||
const card = document.createElement('div');
|
|
||||||
card.classList.add('card');
|
|
||||||
card.innerHTML = `
|
|
||||||
<img src="${product.image_url}" alt="${product.name}">
|
|
||||||
<h3>${product.name}</h3>
|
|
||||||
<p>Preis: ${product.price.toFixed(2)} €</p>
|
|
||||||
<p>${product.description}</p>
|
|
||||||
<p>Artikel Nr: ${product.id}</p>
|
|
||||||
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const addToCartButton = card.querySelector('.add-to-cart');
|
|
||||||
addToCartButton.addEventListener('click', () => {
|
|
||||||
zumWarenkorbHinzufuegen(product);
|
|
||||||
});
|
|
||||||
|
|
||||||
container.appendChild(card);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
// Fehlermeldung
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Fehler beim Laden der Produkte:', err);
|
|
||||||
|
|
||||||
// Fehlermeldung auf der Seite anzeigen
|
|
||||||
const container = document.getElementById('products_sportwagen');
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="error-message">
|
|
||||||
<h3>Fehler beim Laden der Produkte</h3>
|
|
||||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
|
||||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
|
||||||
</div>`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,134 +1,87 @@
|
|||||||
<!--
|
|
||||||
Startseite des Modellauto-Webshops
|
|
||||||
Zeigt ein Infobereich, die neuesten Produkte (per API geladen) und die Vorteile bei uns zu bestellen
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Modellauto - Startseite</title>
|
<title>Autohändler Webshop</title>
|
||||||
<!-- Haupt-CSS-Datei -->
|
<link rel="stylesheet" href="./Styles/startseite/startseite.css">
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
<!-- Icons -->
|
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
<!-- Script zum Laden von Header/Footer -->
|
|
||||||
<script src="/header_footer"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!-- Wrapper für die gesamte Seite -->
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div id="header"></div>
|
<header>
|
||||||
|
<h1>Autohändler Webshop</h1>
|
||||||
|
<div class="header-right">
|
||||||
|
<a href="/login" class="login-btn">Login</a>
|
||||||
|
<div class="cart">
|
||||||
|
<i class='bx bx-cart'></i>
|
||||||
|
<span class="cart-count">0</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Navigationsleiste -->
|
||||||
|
<nav class="menu">
|
||||||
|
<ul class="menu-list">
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Startseite</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Neuwagen</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Gebrauchtwagen</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Angebote</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="/kontakt">Kontakt</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Hauptinhalt -->
|
||||||
<main>
|
<main>
|
||||||
<!-- Infobereich -->
|
<div class="search-bar">
|
||||||
<section style="padding: 40px 20px; text-align: center; background: #fff;">
|
<input type="text" placeholder="Marke oder Modell eingeben">
|
||||||
<h2>Willkommen beim Modellauto-Shop</h2>
|
<select>
|
||||||
<p>Bei uns finden Sie hochwertige Modellautos – ob Oldtimer, Sportwagen, Lkw's oder Motorräder.
|
<option>Fahrzeugtyp</option>
|
||||||
Perfekt für Sammler, Bastler und Fans.
|
<option>SUV</option>
|
||||||
</p>
|
<option>Limousine</option>
|
||||||
</section>
|
<option>Kombi</option>
|
||||||
|
</select>
|
||||||
|
<select>
|
||||||
|
<option>Preisspanne</option>
|
||||||
|
<option>Bis 10.000€</option>
|
||||||
|
<option>Bis 20.000€</option>
|
||||||
|
<option>Bis 50.000€</option>
|
||||||
|
</select>
|
||||||
|
<button>Suchen</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Hauptinhalt -->
|
<section class="card-grid">
|
||||||
<h1>Unsere neusten Produkte: </h1>
|
<div class="card">
|
||||||
<section class="card-grid" id="latest-products">
|
<img src="https://via.placeholder.com/150" alt="Auto">
|
||||||
<!-- Dynamische Produkte (5 neuesten Produkte) -->
|
<h3>BMW 3er Limousine</h3>
|
||||||
</section>
|
<p>Preis: 35.000€</p>
|
||||||
|
<p>Baujahr: 2020 | Kilometerstand: 20.000 km</p>
|
||||||
<!-- JavaScript zum Abrufen und Anzeigen der neuesten Produkte -->
|
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
||||||
<script>
|
|
||||||
// Funktion zum Hinzufügen zum Warenkorb
|
|
||||||
function zumWarenkorbHinzufuegen(product) {
|
|
||||||
let warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
|
|
||||||
const existingProduct = warenkorb.find(p => p.product_id === product.id);
|
|
||||||
|
|
||||||
if (existingProduct) {
|
|
||||||
existingProduct.quantity += 1; // Wenn schon vorhanden, Anzahl erhöhen
|
|
||||||
} else {
|
|
||||||
warenkorb.push({
|
|
||||||
product_id: product.id,
|
|
||||||
product_name: product.name,
|
|
||||||
price: product.price,
|
|
||||||
quantity: 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem('warenkorb', JSON.stringify(warenkorb));
|
|
||||||
alert(`${product.name} wurde zum Warenkorb hinzugefügt!`);
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Produkte laden
|
|
||||||
fetch('/api/products/new')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(products => {
|
|
||||||
const container = document.getElementById('latest-products');
|
|
||||||
container.innerHTML = '';
|
|
||||||
|
|
||||||
products.forEach(product => {
|
|
||||||
const card = document.createElement('div');
|
|
||||||
card.classList.add('card');
|
|
||||||
card.innerHTML = `
|
|
||||||
<img src="${product.image_url}" alt="${product.name}">
|
|
||||||
<h3>${product.name}</h3>
|
|
||||||
<p>Preis: ${product.price.toFixed(2)} €</p>
|
|
||||||
<p>${product.description}</p>
|
|
||||||
<p>Artikel Nr: ${product.id}</p>
|
|
||||||
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
|
||||||
`;
|
|
||||||
|
|
||||||
const addToCartButton = card.querySelector('.add-to-cart');
|
|
||||||
addToCartButton.addEventListener('click', () => {
|
|
||||||
zumWarenkorbHinzufuegen(product);
|
|
||||||
});
|
|
||||||
|
|
||||||
container.appendChild(card);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Fehler beim Laden der Produkte:', err);
|
|
||||||
|
|
||||||
const container = document.getElementById('latest-products');
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="error-message">
|
|
||||||
<h3>Fehler beim Laden der Produkte</h3>
|
|
||||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
|
||||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
|
||||||
</div>`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Infobereich mit den Vorteilen -->
|
|
||||||
<section class="info-cards-section">
|
|
||||||
<div class="info-card">
|
|
||||||
<i class='bx bx-package'></i>
|
|
||||||
<h3>Versandkostenfrei ab 50€</h3>
|
|
||||||
<p>Schneller & sicherer Versand mit Sendungsverfolgung.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="info-card">
|
<div class="card">
|
||||||
<i class='bx bx-credit-card'></i>
|
<img src="https://via.placeholder.com/150" alt="Auto">
|
||||||
<h3>Flexible Zahlungsmethoden</h3>
|
<h3>Audi Q5</h3>
|
||||||
<p>PayPal, Kreditkarte, Klarna, Vorkasse – Sie haben die Wahl.</p>
|
<p>Preis: 50.000€</p>
|
||||||
</div>
|
<p>Baujahr: 2022 | Kilometerstand: 10.000 km</p>
|
||||||
<div class="info-card">
|
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
||||||
<i class='bx bx-undo'></i>
|
|
||||||
<h3>14 Tage Rückgaberecht</h3>
|
|
||||||
<p>Unzufrieden? Kein Problem – Rückgabe einfach & unkompliziert.</p>
|
|
||||||
</div>
|
|
||||||
<div class="info-card">
|
|
||||||
<i class='bx bx-star'></i>
|
|
||||||
<h3>Top-Bewertungen</h3>
|
|
||||||
<p>Unsere Kunden lieben uns – überzeugen Sie sich selbst!</p>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- Fußzeiele -->
|
|
||||||
<div id="footer"></div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<script src="startseite.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,100 +0,0 @@
|
|||||||
/**
|
|
||||||
* Dieser Code lädt beim Start der Seite (DOMContentLoaded) Header und Footer dynamisch vom Server
|
|
||||||
* (über /header und /footer) und fügt sie in die vorgesehenen Elemente ein.
|
|
||||||
* Tritt ein Fehler auf (z.B. Datei nicht vorhanden oder Serverproblem),
|
|
||||||
* wird eine Fehlermeldung direkt auf der Webseite angezeigt.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Warten bis das gesamte DOM geladen ist
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
// Header laden
|
|
||||||
const headerTarget = document.getElementById("header");
|
|
||||||
if (headerTarget) {
|
|
||||||
// Header-Inhalt vom Server anfordern
|
|
||||||
fetch("/header")
|
|
||||||
.then(response => {
|
|
||||||
// Prüfen, ob die Antwort erfolgreich war
|
|
||||||
if (!response.ok) throw new Error("Header nicht gefunden");
|
|
||||||
return response.text();
|
|
||||||
})
|
|
||||||
.then(data => {
|
|
||||||
// Header-Inhalt in die Seite einfügen
|
|
||||||
headerTarget.innerHTML = data;
|
|
||||||
|
|
||||||
// WICHTIG: Jetzt den Warenkorb zählen, nachdem der Header geladen ist!
|
|
||||||
zeigeWarenkorbAnzahl();
|
|
||||||
|
|
||||||
// Login Status im UI anzeigen
|
|
||||||
zeigeLoginStatus();
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
// Fehlerbehandlung: Fehlermeldung im Header-Bereich anzeigen
|
|
||||||
headerTarget.innerHTML = `
|
|
||||||
<div style="background: #ffdede; color: #a00; padding: 10px; text-align: center;">
|
|
||||||
Fehler beim Laden des Headers.
|
|
||||||
</div>`;
|
|
||||||
console.error(error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Footer laden
|
|
||||||
const footerTarget = document.getElementById("footer");
|
|
||||||
if (footerTarget) {
|
|
||||||
// Footer-Inhalt vom Server anfordern
|
|
||||||
fetch("/footer")
|
|
||||||
.then(response => {
|
|
||||||
// Prüfen, ob die Antwort erfolgreich war
|
|
||||||
if (!response.ok) throw new Error("Footer nicht gefunden");
|
|
||||||
return response.text();
|
|
||||||
})
|
|
||||||
.then(data => {
|
|
||||||
// Footer-Inhalt in die Seite einfügen
|
|
||||||
footerTarget.innerHTML = data;
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
// Fehlerbehandlung: Die Fehlermeldung im Footer-Bereich anzeigen
|
|
||||||
footerTarget.innerHTML = `
|
|
||||||
<div style="background: #ffdede; color: #a00; padding: 10px; text-align: center;">
|
|
||||||
Fehler beim Laden der Fußzeile.
|
|
||||||
</div>`;
|
|
||||||
console.error(error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
window.zeigeWarenkorbAnzahl = function () {
|
|
||||||
const warenkorb = JSON.parse(localStorage.getItem('warenkorb')) || [];
|
|
||||||
let anzahl = 0;
|
|
||||||
|
|
||||||
warenkorb.forEach(produkt => {
|
|
||||||
anzahl += produkt.quantity;
|
|
||||||
});
|
|
||||||
|
|
||||||
const anzahlElement = document.getElementById('cart-count');
|
|
||||||
if (anzahlElement) {
|
|
||||||
anzahlElement.textContent = anzahl;
|
|
||||||
}
|
|
||||||
console.log('Warenkorb-Anzahl:', anzahl);
|
|
||||||
}
|
|
||||||
|
|
||||||
window.zeigeLoginStatus = function () {
|
|
||||||
const userId = sessionStorage.getItem('user_id')
|
|
||||||
const loginBtn = document.querySelector('.login-btn')
|
|
||||||
|
|
||||||
if (!loginBtn) return
|
|
||||||
|
|
||||||
if (userId) {
|
|
||||||
loginBtn.textContent = 'Logout'
|
|
||||||
loginBtn.href = '/'
|
|
||||||
loginBtn.addEventListener('click', (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
sessionStorage.clear()
|
|
||||||
localStorage.clear()
|
|
||||||
alert('Sie wurden ausgeloggt.')
|
|
||||||
location.reload()
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
loginBtn.textContent = 'Login'
|
|
||||||
loginBtn.href = '/login'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
23
scripts/example.js
Normal file
23
scripts/example.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
let sidebarEl = document.getElementById("mySidebar")
|
||||||
|
let mainEl = document.getElementById("main")
|
||||||
|
|
||||||
|
/* Set the width of the sidebar to 250px and the left margin of the page content to 250px */
|
||||||
|
function openNav() {
|
||||||
|
sidebarEl.style.width = "250px";
|
||||||
|
mainEl.style.marginLeft = "250px";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set the width of the sidebar to 0 and the left margin of the page content to 0 */
|
||||||
|
function closeNav() {
|
||||||
|
sidebarEl.style.width = "0";
|
||||||
|
mainEl.style.marginLeft = "0";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toggle the sidebar */
|
||||||
|
function toggleNav() {
|
||||||
|
if (sidebarEl.offsetWidth > 0) {
|
||||||
|
closeNav()
|
||||||
|
} else {
|
||||||
|
openNav()
|
||||||
|
}
|
||||||
|
}
|
||||||
7
scripts/login.js
Normal file
7
scripts/login.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
let nameEl = document.getElementById("loginMail");
|
||||||
|
let passwordEl = document.getElementById("loginPassword");
|
||||||
|
|
||||||
|
function login() {
|
||||||
|
console.log(nameEl.value)
|
||||||
|
console.log(passwordEl.value)
|
||||||
|
}
|
||||||
15
scripts/modules/db-connect.js
Normal file
15
scripts/modules/db-connect.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
const mysql = require('mysql2');
|
||||||
|
require('dotenv').config({path:'process.env'});
|
||||||
|
|
||||||
|
const connection = mysql.createConnection({
|
||||||
|
host : process.env.DB_HOST,
|
||||||
|
user : process.env.DB_USER,
|
||||||
|
password : process.env.DB_PASSWORD,
|
||||||
|
database : process.env.DB_DATABASE
|
||||||
|
});
|
||||||
|
|
||||||
|
connection.connect(function(err) {
|
||||||
|
if (err) throw err;
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = connection;
|
||||||
@ -1,79 +1,24 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
// Route - Startseite
|
|
||||||
router.get('/', (req, res) => {
|
router.get('/', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../../../public/startseite/startseite.html'));
|
res.sendFile(path.join(__dirname, '../../../public/startseite/startseite.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
// Route - Login
|
router.get('/example', (req, res) => {
|
||||||
|
res.sendFile(path.join(__dirname, '../../../public/example/index.html'));
|
||||||
|
})
|
||||||
|
|
||||||
router.get('/login', (req, res) => {
|
router.get('/login', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../../../public/login/login.html'));
|
res.sendFile(path.join(__dirname, '../../../public/login/login.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
// Route - Registrieren
|
|
||||||
router.get('/registrieren', (req, res) => {
|
router.get('/registrieren', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../../../public/registrieren/registrieren.html'));
|
res.sendFile(path.join(__dirname, '../../../public/registrieren/registrieren.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
// Route - HeaderFooter Skript
|
router.get('/kontakt', (req, res) => {
|
||||||
router.get('/header_footer', (req, res) => {
|
res.sendFile(path.join(__dirname, '../../../public/Kontakt/kontakt.html'));
|
||||||
res.sendFile(path.join(__dirname, '../../../scripts/einfügenHeaderFooter.js'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Kopfzeile
|
|
||||||
router.get('/header', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/header_footer/header.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Fußzeile
|
|
||||||
router.get('/footer', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/header_footer/footer.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Shop (Alle Produkte)
|
|
||||||
router.get('/shop', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Shop_Motorrad (Filtern nach Motorrad Produkten)
|
|
||||||
router.get('/shop/motorrad', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_motorrad.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Shop_Oldtimer (Filtern nach Oldtimer Produkten)
|
|
||||||
router.get('/shop/oldtimer', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_oldtimer.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Shop_Sportwagen (Filtern nach Sportwagen Produkten)
|
|
||||||
router.get('/shop/sportwagen', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_sportwagen.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Shop_LKW (Filtern nach LKW Produkten)
|
|
||||||
router.get('/shop/lkw', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_lkw.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Warenkorb
|
|
||||||
router.get('/Warenkorb', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/warenkorb/warenkorb.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Bestellformualar
|
|
||||||
router.get('/bestellformular', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/bestellformular/bestellformular.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Bestellungen
|
|
||||||
router.get('/bestellung', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/bestellung/bestellung.html'));
|
|
||||||
})
|
|
||||||
|
|
||||||
// Route - Kontaktformular
|
|
||||||
router.get('/kontaktformular', (req, res) => {
|
|
||||||
res.sendFile(path.join(__dirname, '../../../public/kontaktformular/kontaktformular.html'));
|
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
0
scripts/script-main.js
Normal file
0
scripts/script-main.js
Normal file
307
server.js
307
server.js
@ -1,316 +1,27 @@
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
const session = require('express-session');
|
const session = require('express-session');
|
||||||
|
const router = require('express').Router();
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const bcrypt = require('bcrypt')
|
|
||||||
const mysql = require('mysql');
|
require('dotenv').config({path:'process.env'});
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
require('dotenv').config({path: 'process.env'});
|
|
||||||
|
|
||||||
// Datenbankverbindung
|
|
||||||
const db = mysql.createConnection({
|
|
||||||
host: 'localhost', user: 'root', password: '', database: 'webshop'
|
|
||||||
});
|
|
||||||
|
|
||||||
// Verbindung zur MySQL-Datenbank herstellen
|
|
||||||
db.connect(err => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Verbinden zur Datenbank:', err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
console.log('Mit der Datenbank verbunden');
|
|
||||||
});
|
|
||||||
|
|
||||||
app.use(session({
|
app.use(session({
|
||||||
secret: 'secret', resave: true, saveUninitialized: true
|
secret: 'secret',
|
||||||
|
resave: true,
|
||||||
|
saveUninitialized: true
|
||||||
}));
|
}));
|
||||||
|
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.use(express.urlencoded({extended: true}));
|
app.use(express.urlencoded({ extended: true }));
|
||||||
app.use(express.static(path.join(__dirname, '/scripts')));
|
app.use(express.static(path.join(__dirname, '/scripts')));
|
||||||
app.use(express.static(path.join(__dirname, '/static')));
|
app.use(express.static(path.join(__dirname, '/static')));
|
||||||
|
|
||||||
// API-Route für Produkte
|
|
||||||
app.get('/api/products', (req, res) => {
|
|
||||||
// SQL-Abfrage für Produktdaten
|
|
||||||
const sql = 'SELECT * FROM webshop.product';
|
|
||||||
|
|
||||||
// Abfrage ausführen
|
|
||||||
db.query(sql, (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
|
||||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// API-Route für die 5 neuen Produkte
|
|
||||||
app.get('/api/products/new', async (req, res) => {
|
|
||||||
// SQL-Abfrage für Produktdaten
|
|
||||||
const sql = 'SELECT * FROM webshop.product ORDER BY created_at DESC LIMIT 4';
|
|
||||||
|
|
||||||
// Abfrage ausführen
|
|
||||||
db.query(sql, (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
|
||||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// API-Route für die Motorrad-Produkte
|
|
||||||
app.get('/api/products/motorrad', async (req, res) => {
|
|
||||||
// SQL-Abfrage für Produktdaten
|
|
||||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 4';
|
|
||||||
|
|
||||||
// Abfrage ausführen
|
|
||||||
db.query(sql, (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
|
||||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// API-Route für die Oldtimer-Produkte
|
|
||||||
app.get('/api/products/oldtimer', async (req, res) => {
|
|
||||||
// SQL-Abfrage für Produktdaten
|
|
||||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 2';
|
|
||||||
|
|
||||||
// Abfrage ausführen
|
|
||||||
db.query(sql, (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
|
||||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// API-Route für die Lkw-Produkte
|
|
||||||
app.get('/api/products/lkw', async (req, res) => {
|
|
||||||
// SQL-Abfrage für Produktdaten
|
|
||||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 3';
|
|
||||||
|
|
||||||
// Abfrage ausführen
|
|
||||||
db.query(sql, (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
|
||||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// API-Route für die Sportwagen-Produkte
|
|
||||||
app.get('/api/products/sportwagen', async (req, res) => {
|
|
||||||
// SQL-Abfrage für Produktdaten
|
|
||||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 1';
|
|
||||||
|
|
||||||
// Abfrage ausführen
|
|
||||||
db.query(sql, (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
|
||||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
app.post('/api/user/registration', async (req, res) => {
|
|
||||||
// SQL-Query für Nutzerregistration
|
|
||||||
const {name, lower_name, email, passwd} = req.body;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const hashedPassword = await bcrypt.hash(passwd, 10)
|
|
||||||
|
|
||||||
const sql = "INSERT INTO webshop.user (name, lower_name, email, passwd, passwd_hash_algo) VALUES (?, ?, ?, ?, 'bcrypt')"
|
|
||||||
|
|
||||||
// Query abschicken
|
|
||||||
db.query(sql, [name, lower_name, email, hashedPassword], (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
if (err.code === 'ER_DUP_ENTRY') {
|
|
||||||
res.status(409).json({message: 'Diese E-Mail Adresse ist bereits registriert.'})
|
|
||||||
}
|
|
||||||
console.error('Fehler beim Schreiben in die Datenbank: ', err);
|
|
||||||
res.status(500).send('Fehler beim Schreiben in die Datenbank');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
res.status(201).json({message: 'Nutzer erfolgreich hinzugefügt', id: results.insertId})
|
|
||||||
})
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Hashing-Fehler: ', error)
|
|
||||||
res.status(500).json({message: 'Fehler bei der Verarbeitung'})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
app.post('/api/user/login', (req, res) => {
|
|
||||||
const {email, password} = req.body
|
|
||||||
const sql = 'SELECT id, email, name, lower_name, passwd FROM webshop.user WHERE email = ?'
|
|
||||||
|
|
||||||
db.query(sql, [email], async (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen des Nutzers: ', err)
|
|
||||||
return res.status(500).json({message: 'Serverfehler'})
|
|
||||||
}
|
|
||||||
if (results.length === 0) {
|
|
||||||
return res.status(401).json({message: 'E-Mail oder Passwort ist ungültig.'})
|
|
||||||
}
|
|
||||||
|
|
||||||
const user = results[0]
|
|
||||||
|
|
||||||
try {
|
|
||||||
// Vergleiche gegebenes Passwort mit gespeichertem verschlüsseltem Passwort
|
|
||||||
const passwordMatch = await bcrypt.compare(password, user.passwd)
|
|
||||||
|
|
||||||
if (!passwordMatch) {
|
|
||||||
return res.status(401).json({message: 'E-Mail oder Passwort ist ungültig.'})
|
|
||||||
}
|
|
||||||
|
|
||||||
req.session.userId = user.id;
|
|
||||||
req.session.email = user.email;
|
|
||||||
req.session.vorname = user.name;
|
|
||||||
req.session.nachname = user.lower_name;
|
|
||||||
|
|
||||||
// bei erfolgreichem Login Daten ans Frontend geben
|
|
||||||
res.json({message: 'Login erfolgreich', id: user.id, name: user.name, lower_name: user.lower_name})
|
|
||||||
|
|
||||||
} catch (compareError) {
|
|
||||||
console.error('Fehler beim Verarbeiten der Anfrage: ', compareError)
|
|
||||||
return res.status(500).json({message: 'Serverfehler bei der Anmeldung'})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
app.post('/api/bestellung', (req, res) => {
|
|
||||||
const {user_id, produkte} = req.body;
|
|
||||||
// produkte erwartet als Array: [{product_id: 1, quantity: 2}, {product_id: 5, quantity: 1}, ...]
|
|
||||||
|
|
||||||
if (!user_id || !Array.isArray(produkte) || produkte.length === 0) {
|
|
||||||
return res.status(400).json({message: 'Ungültige Anfrage: user_id oder Produkte fehlen.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Preise der Produkte abrufen
|
|
||||||
const productIds = produkte.map(p => p.product_id);
|
|
||||||
|
|
||||||
const priceQuery = 'SELECT id, price FROM webshop.product WHERE id IN (?)';
|
|
||||||
db.query(priceQuery, [productIds], (err, priceResults) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Produktpreise:', err);
|
|
||||||
return res.status(500).json({message: 'Serverfehler beim Abrufen der Produktpreise.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (priceResults.length !== productIds.length) {
|
|
||||||
return res.status(400).json({message: 'Eines oder mehrere Produkte existieren nicht.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Total berechnen
|
|
||||||
let total = 0;
|
|
||||||
produkte.forEach(p => {
|
|
||||||
const dbProduct = priceResults.find(pr => pr.id === p.product_id);
|
|
||||||
if (dbProduct) {
|
|
||||||
total += dbProduct.price * p.quantity;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const payment_id = 1; // Zahlungssystem-ID (z.B. 1 = Rechnung, 2 = PayPal, ...)
|
|
||||||
|
|
||||||
const sqlOrder = 'INSERT INTO webshop.order_details (user_id, payment_id, total) VALUES (?, ?, ?)';
|
|
||||||
db.query(sqlOrder, [user_id, payment_id, total], (err1, result1) => {
|
|
||||||
if (err1) {
|
|
||||||
console.error('Fehler beim Erstellen der Bestellung:', err1);
|
|
||||||
return res.status(500).json({message: 'Fehler beim Erstellen der Bestellung.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
const orderId = result1.insertId;
|
|
||||||
|
|
||||||
const values = produkte.map(p => [user_id, p.product_id, p.quantity, orderId]);
|
|
||||||
const sqlItems = 'INSERT INTO webshop.order_items (user_id, product_id, quantity, order_id) VALUES ?';
|
|
||||||
|
|
||||||
db.query(sqlItems, [values], (err2) => {
|
|
||||||
if (err2) {
|
|
||||||
console.error('Fehler beim Einfügen der Order-Items:', err2);
|
|
||||||
return res.status(500).json({message: 'Fehler beim Hinzufügen der Produkte zur Bestellung.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
res.status(201).json({message: 'Bestellung erfolgreich!', order_id: orderId, total: total.toFixed(2)});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
app.post('/api/bestellung/daten', (req, res) => {
|
|
||||||
const {user_id} = req.body;
|
|
||||||
|
|
||||||
const sql = `
|
|
||||||
SELECT od.id AS order_id,
|
|
||||||
od.total AS order_total,
|
|
||||||
oi.product_id,
|
|
||||||
oi.quantity,
|
|
||||||
p.name AS product_name,
|
|
||||||
p.price AS product_price
|
|
||||||
FROM webshop.order_details od
|
|
||||||
INNER JOIN
|
|
||||||
webshop.order_items oi ON od.id = oi.order_id
|
|
||||||
INNER JOIN
|
|
||||||
webshop.product p ON oi.product_id = p.id
|
|
||||||
WHERE od.user_id = ?
|
|
||||||
ORDER BY od.id DESC
|
|
||||||
`;
|
|
||||||
|
|
||||||
db.query(sql, [user_id], (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler beim Abrufen der Bestellungen: ', err);
|
|
||||||
return res.status(500).json({message: 'Fehler beim Abrufen der Bestellungen'});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (results.length === 0) {
|
|
||||||
return res.status(404).json({message: 'Keine Bestellungen gefunden.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
res.json(results);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
app.get('/api/pruefe-artikel', (req, res) => {
|
|
||||||
const artikelnummer = req.query.nummer;
|
|
||||||
|
|
||||||
if (!artikelnummer) {
|
|
||||||
return res.status(400).json({error: 'Keine Artikelnummer angegeben.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
const query = 'SELECT id FROM webshop.product WHERE id = ?';
|
|
||||||
|
|
||||||
db.query(query, [artikelnummer], (err, results) => {
|
|
||||||
if (err) {
|
|
||||||
console.error('Fehler bei der Artikelsuche:', err);
|
|
||||||
return res.status(500).json({error: 'Serverfehler bei der Artikelsuche.'});
|
|
||||||
}
|
|
||||||
|
|
||||||
const verfuegbar = results.length > 0;
|
|
||||||
res.json({verfuegbar});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
const getIndexRoute = require('./scripts/routes/other/route-index');
|
const getIndexRoute = require('./scripts/routes/other/route-index');
|
||||||
|
|
||||||
app.use('/', getIndexRoute);
|
app.use('/', getIndexRoute);
|
||||||
|
|
||||||
// Hier werden alle anderen Seiten abgefangen, die keine definierten Routen haben (404 Fehler) und gibt die 404.html aus
|
|
||||||
app.use((req, res) => {
|
|
||||||
// Setzt den Statuscode auf 404 und sendet die '404.html'-Datei
|
|
||||||
res.status(404).sendFile(path.join(__dirname, 'public', '404.html'));
|
|
||||||
});
|
|
||||||
|
|
||||||
// Sever starten
|
|
||||||
app.listen(process.env.APP_PORT, () => {
|
app.listen(process.env.APP_PORT, () => {
|
||||||
console.log("\x1b[32m");
|
console.log("\x1b[32m");
|
||||||
console.log(`Server is running on http://localhost:${process.env.APP_PORT}`);
|
console.log(`Server is running on http://localhost:${process.env.APP_PORT}`);
|
||||||
|
|||||||
234
static/Styles/Kontakt/kontakt.css
Normal file
234
static/Styles/Kontakt/kontakt.css
Normal file
@ -0,0 +1,234 @@
|
|||||||
|
/* Allgemeine Einstellungen */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: "Poppins", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #f8f9fa;
|
||||||
|
color: #333;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header */
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15px 20px;
|
||||||
|
width: 100%;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 28px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .login-btn {
|
||||||
|
font-size: 14px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
background: #ff6600;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .login-btn:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
font-size: 24px;
|
||||||
|
color: #ff6600;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-count {
|
||||||
|
position: absolute;
|
||||||
|
top: -5px;
|
||||||
|
right: -10px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation */
|
||||||
|
.menu {
|
||||||
|
background: #ffffff;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-list {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
font-size: 18px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item a:hover {
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Submenu */
|
||||||
|
.submenu {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
display: none;
|
||||||
|
list-style: none;
|
||||||
|
min-width: 200px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li {
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li a {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li a:hover {
|
||||||
|
color: white;
|
||||||
|
background: #ff6600;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item:hover .submenu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Suchleiste */
|
||||||
|
.search-bar {
|
||||||
|
display: flex;
|
||||||
|
gap: 15px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
position: sticky;
|
||||||
|
top: 65px;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar input,
|
||||||
|
.search-bar select {
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 5px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar button {
|
||||||
|
padding: 12px 20px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar button:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Karten */
|
||||||
|
.card-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 20px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
text-align: center;
|
||||||
|
padding: 20px;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card h3 {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #333;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-to-cart {
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
margin-top: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-to-cart:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
234
static/Styles/example.css
Normal file
234
static/Styles/example.css
Normal file
@ -0,0 +1,234 @@
|
|||||||
|
/* Allgemeine Einstellungen */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: "Poppins", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #f8f9fa;
|
||||||
|
color: #333;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header */
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15px 20px;
|
||||||
|
width: 100%;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 28px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .login-btn {
|
||||||
|
font-size: 14px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
background: #ff6600;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .login-btn:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
font-size: 24px;
|
||||||
|
color: #ff6600;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-count {
|
||||||
|
position: absolute;
|
||||||
|
top: -5px;
|
||||||
|
right: -10px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation */
|
||||||
|
.menu {
|
||||||
|
background: #ffffff;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-list {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
font-size: 18px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item a:hover {
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Submenu */
|
||||||
|
.submenu {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
display: none;
|
||||||
|
list-style: none;
|
||||||
|
min-width: 200px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li {
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li a {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li a:hover {
|
||||||
|
color: white;
|
||||||
|
background: #ff6600;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item:hover .submenu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Suchleiste */
|
||||||
|
.search-bar {
|
||||||
|
display: flex;
|
||||||
|
gap: 15px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
position: sticky;
|
||||||
|
top: 65px;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar input,
|
||||||
|
.search-bar select {
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 5px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar button {
|
||||||
|
padding: 12px 20px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar button:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Karten */
|
||||||
|
.card-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 20px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
text-align: center;
|
||||||
|
padding: 20px;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card h3 {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #333;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-to-cart {
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
margin-top: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-to-cart:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
@ -1,61 +1,109 @@
|
|||||||
.login-container {
|
/* Allgemeine Einstellungen */
|
||||||
background-color: #fff;
|
* {
|
||||||
padding: 40px 30px;
|
margin: 0;
|
||||||
border-radius: 16px;
|
padding: 0;
|
||||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
box-sizing: border-box;
|
||||||
width: 100%;
|
font-family: "Poppins", sans-serif;
|
||||||
max-width: 400px;
|
|
||||||
text-align: center;
|
|
||||||
margin: 50px auto; /* Zentriert das Formular */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form .input-group {
|
body {
|
||||||
|
background: #f8f9fa;
|
||||||
|
color: #333;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wrapper */
|
||||||
|
.wrapper {
|
||||||
|
background: #ffffff;
|
||||||
|
padding: 40px;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
max-width: 400px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 24px;
|
||||||
|
text-align: center;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Input-Box */
|
||||||
|
.input-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form input {
|
.input-box input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px 15px 12px 15px;
|
padding: 12px 40px 12px 15px;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 8px;
|
border-radius: 5px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
outline: none;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form .icon {
|
/* Styling für das Schloss-Icon */
|
||||||
display: none;
|
.input-box i {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 15px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
color: #888;
|
||||||
|
font-size: 20px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn {
|
/* Remember and Forgot */
|
||||||
|
.remember-forgot {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-forgot a {
|
||||||
|
color: #ff6600;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remember-forgot a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Button */
|
||||||
|
.btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px;
|
padding: 12px 20px;
|
||||||
background: #ff6600;
|
background: #ff6600;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 25px;
|
border-radius: 5px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.3s ease;
|
transition: background 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn:hover {
|
.btn:hover {
|
||||||
background: #e95b00;
|
background: #e95b00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-text {
|
/* Register-Link */
|
||||||
margin-top: 20px;
|
.register-link {
|
||||||
|
text-align: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #555;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-text a {
|
.register-link a {
|
||||||
color: #ff6600;
|
color: #ff6600;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-text a:hover {
|
.register-link a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
@ -1,72 +1,103 @@
|
|||||||
.page-container {
|
/* Allgemeine Einstellungen */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: "Poppins", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #f8f9fa;
|
||||||
|
color: #333;
|
||||||
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 100vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-wrapper {
|
/* Wrapper für das Formular */
|
||||||
max-width: 400px;
|
.wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 30px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 12px;
|
|
||||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-wrapper {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
padding: 40px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.registration-container {
|
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
margin: 60px auto;
|
margin: 50px auto;
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
background-color: #ffffff;
|
background: #fff;
|
||||||
border: 1px solid #ddd;
|
border-radius: 10px;
|
||||||
border-radius: 12px;
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.registration-container h2 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
font-size: 1.8em;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.registration-container input[type="text"],
|
/* Eingabefelder */
|
||||||
.registration-container input[type="email"],
|
.input-box {
|
||||||
.registration-container input[type="password"] {
|
position: relative;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Textfelder */
|
||||||
|
.input-box input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px 12px;
|
padding: 12px 15px;
|
||||||
margin-bottom: 15px;
|
font-size: 16px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ddd;
|
||||||
border-radius: 8px;
|
border-radius: 5px;
|
||||||
font-size: 1em;
|
outline: none;
|
||||||
box-sizing: border-box;
|
padding-left: 40px; /* Platz für das Icon */
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-link {
|
/* Positionierung der Icons */
|
||||||
text-align: center;
|
.input-box i {
|
||||||
font-size: 14px;
|
position: absolute;
|
||||||
margin-top: 5px;
|
top: 50%;
|
||||||
|
left: 10px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
font-size: 18px;
|
||||||
|
color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-link a {
|
/* Passwortfeld */
|
||||||
color: #ff6600;
|
.input-box input[type="password"] {
|
||||||
text-decoration: none;
|
padding-right: 40px; /* Platz für das Passwort-Symbol rechts */
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-link a:hover {
|
/* Positionierung des Passwort-Symbols */
|
||||||
text-decoration: underline;
|
#toggleRegPassword {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 10px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
font-size: 18px;
|
||||||
|
color: #888;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-btn {
|
/* Passwort Sicherheitsbalken */
|
||||||
|
.password-strength-bar {
|
||||||
|
width: 100%;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #ddd;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sicherheitsstufen */
|
||||||
|
.password-strength-bar.weak {
|
||||||
|
background-color: #f44336; /* Rot für schwach */
|
||||||
|
}
|
||||||
|
|
||||||
|
.password-strength-bar.medium {
|
||||||
|
background-color: #ff9800; /* Orange für mittel */
|
||||||
|
}
|
||||||
|
|
||||||
|
.password-strength-bar.strong {
|
||||||
|
background-color: #4caf50; /* Grün für stark */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Button */
|
||||||
|
.btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
background: #ff6600;
|
background: #ff6600;
|
||||||
@ -74,8 +105,25 @@
|
|||||||
border: none;
|
border: none;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.3s ease;
|
transition: background 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Registrierung-Link */
|
||||||
|
.register-link {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.register-link a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.register-link a:hover {
|
||||||
|
color: #e95b00;
|
||||||
|
}
|
||||||
|
|||||||
234
static/Styles/startseite/startseite.css
Normal file
234
static/Styles/startseite/startseite.css
Normal file
@ -0,0 +1,234 @@
|
|||||||
|
/* Allgemeine Einstellungen */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: "Poppins", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #f8f9fa;
|
||||||
|
color: #333;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header */
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15px 20px;
|
||||||
|
width: 100%;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 28px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .login-btn {
|
||||||
|
font-size: 14px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
background: #ff6600;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .login-btn:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
font-size: 24px;
|
||||||
|
color: #ff6600;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-count {
|
||||||
|
position: absolute;
|
||||||
|
top: -5px;
|
||||||
|
right: -10px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation */
|
||||||
|
.menu {
|
||||||
|
background: #ffffff;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-list {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
font-size: 18px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item a:hover {
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Submenu */
|
||||||
|
.submenu {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
display: none;
|
||||||
|
list-style: none;
|
||||||
|
min-width: 200px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li {
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li a {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu li a:hover {
|
||||||
|
color: white;
|
||||||
|
background: #ff6600;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item:hover .submenu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Suchleiste */
|
||||||
|
.search-bar {
|
||||||
|
display: flex;
|
||||||
|
gap: 15px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
position: sticky;
|
||||||
|
top: 65px;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar input,
|
||||||
|
.search-bar select {
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 5px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar button {
|
||||||
|
padding: 12px 20px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar button:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Karten */
|
||||||
|
.card-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 20px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
text-align: center;
|
||||||
|
padding: 20px;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card h3 {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #333;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-to-cart {
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
margin-top: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-to-cart:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
@ -1,753 +1,26 @@
|
|||||||
/* ========== Allgemeine Einstellungen ========== */
|
|
||||||
* {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-family: "Poppins", sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background: #f8f9fa;
|
|
||||||
color: #333;
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Header ========== */
|
|
||||||
header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
padding: 0px 20px;
|
|
||||||
width: 100%;
|
|
||||||
background: #ffffff;
|
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-container {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
text-decoration: none;
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-container h1 {
|
|
||||||
margin-left: 10px;
|
|
||||||
font-size: 1.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-img {
|
|
||||||
height: 70px;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-link {
|
|
||||||
text-decoration: none;
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
header h1 {
|
|
||||||
font-size: 30px;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-right {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-btn {
|
|
||||||
font-size: 14px;
|
|
||||||
text-decoration: none;
|
|
||||||
color: white;
|
|
||||||
background: #ff6600;
|
|
||||||
padding: 10px 20px;
|
|
||||||
border-radius: 25px;
|
|
||||||
transition: background 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-btn:hover {
|
|
||||||
background: #e95b00;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Warenkorb Icon ========== */
|
|
||||||
.cart {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
position: relative;
|
|
||||||
font-size: 24px;
|
|
||||||
color: #ff6600;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cart-count {
|
|
||||||
position: absolute;
|
|
||||||
top: -5px;
|
|
||||||
right: -10px;
|
|
||||||
background: #ff6600;
|
|
||||||
color: white;
|
|
||||||
font-size: 12px;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
border-radius: 50%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Navigation ========== */
|
|
||||||
.menu {
|
|
||||||
background: #ffffff;
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-list {
|
|
||||||
list-style: none;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
padding: 15px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-item {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-item a {
|
|
||||||
text-decoration: none;
|
|
||||||
color: #333;
|
|
||||||
font-size: 18px;
|
|
||||||
padding: 10px 20px;
|
|
||||||
transition: background 0.3s ease, color 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-item a:hover {
|
|
||||||
background: #ff6600;
|
|
||||||
color: white;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submenu {
|
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
left: 0;
|
|
||||||
background: #ffffff;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
display: none;
|
|
||||||
list-style: none;
|
|
||||||
min-width: 200px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submenu li {
|
|
||||||
padding: 10px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submenu li a {
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submenu li a:hover {
|
|
||||||
color: white;
|
|
||||||
background: #ff6600;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-item:hover .submenu {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Suchleiste ========== */
|
|
||||||
.search-bar {
|
|
||||||
display: flex;
|
|
||||||
gap: 15px;
|
|
||||||
width: 100%;
|
|
||||||
padding: 20px;
|
|
||||||
background: #ffffff;
|
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
position: sticky;
|
|
||||||
top: 65px;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar input,
|
|
||||||
.search-bar select {
|
|
||||||
padding: 12px;
|
|
||||||
font-size: 16px;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 5px;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar button {
|
|
||||||
padding: 12px 20px;
|
|
||||||
background: #ff6600;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar button:hover {
|
|
||||||
background: #e95b00;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Karten ========== */
|
|
||||||
.card-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
||||||
gap: 20px;
|
|
||||||
width: 100%;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
background: #ffffff;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
text-align: center;
|
|
||||||
padding: 20px;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card img {
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
border-radius: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card h3 {
|
|
||||||
font-size: 20px;
|
|
||||||
color: #333;
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card p {
|
|
||||||
font-size: 14px;
|
|
||||||
color: #666;
|
|
||||||
margin: 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.add-to-cart {
|
|
||||||
background: #ff6600;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 12px 20px;
|
|
||||||
border-radius: 25px;
|
|
||||||
margin-top: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.add-to-cart:hover {
|
|
||||||
background: #e95b00;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Footer ========== */
|
|
||||||
.footer {
|
|
||||||
background: #222;
|
|
||||||
color: #fff;
|
|
||||||
padding: 30px 20px;
|
|
||||||
text-align: center;
|
|
||||||
margin-top: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer a {
|
|
||||||
color: #ff6600;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Bestellinformationen ========== */
|
|
||||||
#bestellung {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 20px;
|
|
||||||
padding: 30px 20px;
|
|
||||||
max-width: 800px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bestell-info-card {
|
|
||||||
background: #ffffff;
|
|
||||||
border-radius: 15px;
|
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
||||||
padding: 25px;
|
|
||||||
transition: transform 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bestell-info-card:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bestell-info-card h3 {
|
|
||||||
font-size: 20px;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bestell-info-card p {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #555;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bestell-info-card strong {
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.warenkorb {
|
|
||||||
max-width: 1000px;
|
|
||||||
margin: 40px auto;
|
|
||||||
padding: 20px;
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 16px;
|
|
||||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
main > h2 {
|
/*
|
||||||
text-align: center;
|
===============
|
||||||
font-size: 2rem;
|
Fonts
|
||||||
margin-bottom: 30px;
|
===============
|
||||||
color: #333;
|
*/
|
||||||
}
|
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");
|
||||||
|
|
||||||
.warenkorb-tabelle {
|
/*
|
||||||
width: 100%;
|
===============
|
||||||
border-collapse: collapse;
|
Variables
|
||||||
font-size: 1rem;
|
===============
|
||||||
}
|
*/
|
||||||
|
:root {
|
||||||
.warenkorb-tabelle th, .warenkorb-tabelle td {
|
--demo-clr: #ff0000;
|
||||||
padding: 12px 15px;
|
}
|
||||||
text-align: center;
|
|
||||||
border-bottom: 1px solid #ddd;
|
/*
|
||||||
}
|
===============
|
||||||
|
Global Styles
|
||||||
.warenkorb-tabelle th {
|
===============
|
||||||
background-color: #f4f4f4;
|
*/
|
||||||
color: #444;
|
|
||||||
}
|
|
||||||
|
|
||||||
.warenkorb-tabelle tr:nth-child(even) {
|
|
||||||
background-color: #fafafa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menge-button, .loeschen-button {
|
|
||||||
background-color: #4a90e2;
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
padding: 6px 10px;
|
|
||||||
border-radius: 8px;
|
|
||||||
font-size: 16px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menge-button:hover, .loeschen-button:hover {
|
|
||||||
background-color: #357ab8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loeschen-button {
|
|
||||||
background-color: #e74c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loeschen-button:hover {
|
|
||||||
background-color: #c0392b;
|
|
||||||
}
|
|
||||||
|
|
||||||
.produkt-anzahl {
|
|
||||||
margin: 0 8px;
|
|
||||||
display: inline-block;
|
|
||||||
min-width: 24px;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#gesamtpreis-container {
|
|
||||||
margin-top: 20px;
|
|
||||||
text-align: right;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #222;
|
|
||||||
}
|
|
||||||
|
|
||||||
#zurKasseGehen {
|
|
||||||
margin-top: 30px;
|
|
||||||
background-color: #e95b00;
|
|
||||||
color: white;
|
|
||||||
padding: 12px 25px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 12px;
|
|
||||||
font-size: 18px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.3s ease;
|
|
||||||
display: block;
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#zurKasseGehen:hover {
|
|
||||||
background-color: #219150;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Bestellformular Styling ========== */
|
|
||||||
.form-container {
|
|
||||||
background: #fff;
|
|
||||||
max-width: 700px;
|
|
||||||
margin: 40px auto;
|
|
||||||
padding: 30px;
|
|
||||||
border-radius: 20px;
|
|
||||||
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#bestellform {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#bestellform h2 {
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
font-size: 26px;
|
|
||||||
color: #ff6600;
|
|
||||||
}
|
|
||||||
|
|
||||||
#bestellform label {
|
|
||||||
font-weight: 500;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#bestellform input[type="text"] {
|
|
||||||
padding: 12px;
|
|
||||||
border-radius: 10px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
font-size: 16px;
|
|
||||||
transition: border-color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
#bestellform input[type="text"]:focus {
|
|
||||||
border-color: #ff6600;
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: 24px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
text-align: center;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
font-size: 16px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
color: #555;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="text"], input[type="number"] {
|
|
||||||
width: 100%;
|
|
||||||
padding: 12px;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 8px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
transition: border 0.3s ease, box-shadow 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="text"]:focus, input[type="number"]:focus {
|
|
||||||
border-color: #ff6600;
|
|
||||||
box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.Artikel {
|
|
||||||
display: flex;
|
|
||||||
gap: 5px;
|
|
||||||
align-items: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Artikel input {
|
|
||||||
flex: 1 1 120px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Artikel .verfuegbarkeit {
|
|
||||||
font-size: 14px;
|
|
||||||
flex-basis: 100%;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ArtikelNrText, .StueckzahlText {
|
|
||||||
width: calc(50% - 5px);
|
|
||||||
font-size: 16px;
|
|
||||||
border-radius: 8px;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ArtikelNrText:focus, .StueckzahlText:focus {
|
|
||||||
border-color: #ff6600;
|
|
||||||
box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.loeschen-button {
|
|
||||||
background-color: #e74c3c;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 8px 16px;
|
|
||||||
font-size: 16px;
|
|
||||||
border-radius: 8px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loeschen-button:hover {
|
|
||||||
background-color: #c0392b;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button-submit {
|
|
||||||
margin-top: 20px;
|
|
||||||
padding: 14px;
|
|
||||||
background: #ff6600;
|
|
||||||
color: white;
|
|
||||||
font-weight: bold;
|
|
||||||
border-radius: 25px;
|
|
||||||
text-align: center;
|
|
||||||
display: inline-block;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 0.3s ease;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button-submit:hover {
|
|
||||||
background: #e95b00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.verfuegbarkeit {
|
|
||||||
font-size: 14px;
|
|
||||||
color: #888;
|
|
||||||
flex-grow: 1;
|
|
||||||
text-align: right;
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sendOrder {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
padding: 15px;
|
|
||||||
background-color: #ff6600;
|
|
||||||
color: white;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 18px;
|
|
||||||
border-radius: 8px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.3s ease;
|
|
||||||
margin-top: 20px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sendOrder:hover {
|
|
||||||
background-color: #e95b00;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.ArtikelNrText, .StueckzahlText {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-text-formular {
|
|
||||||
text-align: center;
|
|
||||||
font-size: 17px;
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-text-formular a {
|
|
||||||
color: #ff6600;
|
|
||||||
text-decoration: none;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-text-formular a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[readonly] {
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
color: #666;
|
|
||||||
border: 1px dashed #999;
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
input:not([readonly]) {
|
|
||||||
background-color: #ffffff;
|
|
||||||
color: #000;
|
|
||||||
border: 1px solid #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Formulare und Buttons allgemein ========== */
|
|
||||||
.input-box {
|
|
||||||
position: relative;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 26px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 25px;
|
|
||||||
color: #333;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-box input {
|
|
||||||
width: 100%;
|
|
||||||
padding: 12px 40px 12px 15px;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 5px;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-box i {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
right: 15px;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
color: #888;
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
width: 100%;
|
|
||||||
padding: 12px 20px;
|
|
||||||
background: #ff6600;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
border-radius: 10px;
|
|
||||||
font-size: 16px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:hover {
|
|
||||||
background: #e95b00;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 24px;
|
color: var(--demo-clr);
|
||||||
color: #333;
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-cards-section {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 30px;
|
|
||||||
padding: 50px 20px;
|
|
||||||
background: #f8f9fa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-card {
|
|
||||||
background: #ffffff;
|
|
||||||
border-radius: 15px;
|
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
||||||
padding: 30px 25px;
|
|
||||||
width: 320px;
|
|
||||||
min-height: 50px;
|
|
||||||
text-align: center;
|
|
||||||
transition: transform 0.3s ease;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-card:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-card i {
|
|
||||||
font-size: 50px;
|
|
||||||
color: #ff6600;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-card h3 {
|
|
||||||
font-size: 22px;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-card p {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== Error Nachricht (Header und Footer) ========== */
|
|
||||||
.error-message {
|
|
||||||
max-width: 600px;
|
|
||||||
margin: 40px auto;
|
|
||||||
padding: 30px;
|
|
||||||
background-color: #fff5f5;
|
|
||||||
color: #b00020;
|
|
||||||
border: 1px solid #ffcccc;
|
|
||||||
border-radius: 12px;
|
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
||||||
text-align: center;
|
|
||||||
font-family: inherit;
|
|
||||||
animation: fadeIn 0.6s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-message h3 {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-message p {
|
|
||||||
font-size: 1rem;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* weiche Animation beim Einblenden */
|
|
||||||
@keyframes fadeIn {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(20px);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
BIN
static/images/LoginBackround.jpg
Normal file
BIN
static/images/LoginBackround.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 534 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB |
Loading…
x
Reference in New Issue
Block a user