diff --git a/.github/workflows/css-linting.yml b/.github/workflows/css-linting.yml
index fae3b66..48b333a 100644
--- a/.github/workflows/css-linting.yml
+++ b/.github/workflows/css-linting.yml
@@ -20,4 +20,4 @@ jobs:
- name: Install dependencies
run: sudo npm install
- name: Run tests
- run: sudo npm run lintCSS
\ No newline at end of file
+ run: sudo npm run lint-css
\ No newline at end of file
diff --git a/.github/workflows/html-linting.yml b/.github/workflows/html-linting.yml
index ab68590..c24292b 100644
--- a/.github/workflows/html-linting.yml
+++ b/.github/workflows/html-linting.yml
@@ -20,4 +20,4 @@ jobs:
- name: Install dependencies
run: sudo npm install
- name: Run tests
- run: sudo npm run lintHTML
+ run: sudo npm run lint-html
diff --git a/.github/workflows/js-linting.yml b/.github/workflows/js-linting.yml
index f3aafaf..b642926 100644
--- a/.github/workflows/js-linting.yml
+++ b/.github/workflows/js-linting.yml
@@ -22,4 +22,4 @@ jobs:
- name: Install dependencies
run: sudo npm install
- name: Run tests
- run: sudo npm run lint
\ No newline at end of file
+ run: sudo npm run lint-js
\ No newline at end of file
diff --git a/.github/workflows/js-unittest.yml b/.github/workflows/js-unittest.yml
index 4cb1359..918ce70 100644
--- a/.github/workflows/js-unittest.yml
+++ b/.github/workflows/js-unittest.yml
@@ -23,5 +23,7 @@ jobs:
uses: actions/checkout@v3
- name: Install dependencies
run: sudo npm install
+ - name: Start local http server
+ run: sudo npm run http-server &
- name: Run tests
run: sudo npm test
\ No newline at end of file
diff --git a/.htmlhintrc b/.htmlhintrc
index edd263f..c833339 100644
--- a/.htmlhintrc
+++ b/.htmlhintrc
@@ -1,3 +1,4 @@
{
- "attr-value-not-empty": false
+ "attr-value-not-empty": false,
+ "space-tab-mixed-disabled": "tab"
}
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 2f1eeda..c3e95e2 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,3 +1,7 @@
{
- "extends": "stylelint-config-standard"
+ "extends": "stylelint-config-standard",
+ "ignore": ["inside-parens", "param", "value"],
+ "rules":{
+ "indentation": "tab"
+ }
}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..6f3a291
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "liveServer.settings.port": 5501
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index bd8a69c..be9a691 100644
--- a/package.json
+++ b/package.json
@@ -4,16 +4,20 @@
"type": "module",
"scripts": {
"test": "mocha --recursive --require mock-local-storage './{,!(node_modules)/**}/*.test.js'",
- "lint": "eslint '**/*.js'",
- "fix-style": "eslint --fix **/*.js",
- "lintHTML": "htmlhint '**/*.html'",
- "lintCSS": "stylelint '**/*.css'"
+ "lint-js": "eslint **/*.js",
+ "fix-js": "eslint --fix **/*.js",
+ "lint-html": "htmlhint **/*.html",
+ "lint-css": "stylelint **/*.css",
+ "fix-css": "stylelint --fix **/*.css",
+ "http-server": "http-server source"
},
"devDependencies": {
"eslint": "^8.27.0",
"htmlhint": "1.1.4",
+ "http-server": "",
"mocha": "10",
"mock-local-storage": "^1.1.23",
+ "puppeteer": "^18.2.1",
"stylelint": "14.14.1",
"stylelint-config-standard": "^29.0.0"
}
diff --git a/source/CreatePage.html b/source/CreatePage.html
index 64dfe78..67529e2 100644
--- a/source/CreatePage.html
+++ b/source/CreatePage.html
@@ -1,77 +1,93 @@
-
-
-
-
- Food Journal
+
+
+
+
+ Food Journal
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
Food Journal
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/ReviewDetails.html b/source/ReviewDetails.html
index 6c1080b..9690f16 100644
--- a/source/ReviewDetails.html
+++ b/source/ReviewDetails.html
@@ -1,77 +1,122 @@
-
-
-
-
- Food Journal
+
+
+
+
+ Food Journal
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
Food Journal
+
+
+
-
-
-
-
-
-
-