Skip to content

Commit f068e85

Browse files
committed
style: format files
1 parent fc460e4 commit f068e85

19 files changed

+1223
-517
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐛 Bug
22
description: Report an issue to help improve the project.
3-
labels: ['🛠 goal: fix']
3+
labels: ["🛠 goal: fix"]
44
body:
55
- type: textarea
66
id: description

.github/ISSUE_TEMPLATE/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 📄 Documentation issue
22
description: Found an issue in the documentation? You can use this one!
3-
title: '[DOCS] <description>'
4-
labels: ['📄 aspect: text']
3+
title: "[DOCS] <description>"
4+
labels: ["📄 aspect: text"]
55
body:
66
- type: textarea
77
id: description

.github/ISSUE_TEMPLATE/feature_request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 💡 General Feature Request
22
description: Have a new idea/feature for LinkFree? Please suggest!
3-
title: '[FEATURE] <description>'
4-
labels: ['⭐ goal: addition']
3+
title: "[FEATURE] <description>"
4+
labels: ["⭐ goal: addition"]
55
body:
66
- type: textarea
77
id: description

.github/ISSUE_TEMPLATE/other.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Other
22
description: Use this for any other issues. Please do NOT create blank issues
3-
title: '[OTHER]'
4-
labels: ['🚦 status: awaiting triage']
3+
title: "[OTHER]"
4+
labels: ["🚦 status: awaiting triage"]
55
body:
66
- type: markdown
77
attributes:
8-
value: '# Other issue'
8+
value: "# Other issue"
99
- type: textarea
1010
id: issuedescription
1111
attributes:

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v2
99
- uses: actions/setup-node@v2
1010
with:
11-
node-version: '16'
11+
node-version: "16"
1212
- name: install dependencies
1313
run: npm ci
1414
- name: run linter
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- uses: actions/setup-node@v2
2424
with:
25-
node-version: '16'
25+
node-version: "16"
2626
- name: install dependencies
2727
run: npm ci
2828
- name: run tests

.github/workflows/deploy.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: '16'
14+
node-version: "16"
1515
- name: install dependencies
1616
run: npm ci
1717
- name: run build
@@ -49,7 +49,7 @@ jobs:
4949
push: true
5050
secrets: |
5151
'GH_TOKEN=${{ secrets.GITHUB_TOKEN }}'
52-
build-args: 'github_token=${{ secrets.GITHUB_TOKEN }}'
52+
build-args: "github_token=${{ secrets.GITHUB_TOKEN }}"
5353
tags: |
5454
ghcr.io/eddiehubcommunity/linkfree:v${{ steps.package-version.outputs.current-version}}
5555
ghcr.io/eddiehubcommunity/linkfree:latest
@@ -68,7 +68,7 @@ jobs:
6868
kubeconfig: ${{ secrets.KUBE_CONFIG }}
6969
- uses: Azure/[email protected]
7070
with:
71-
namespace: 'default'
71+
namespace: "default"
7272
manifests: kubernetes/deployment.yaml
73-
images: 'ghcr.io/eddiehubcommunity/linkfree:v${{ steps.package-version.outputs.current-version}}'
74-
kubectl-version: 'latest'
73+
images: "ghcr.io/eddiehubcommunity/linkfree:v${{ steps.package-version.outputs.current-version}}"
74+
kubectl-version: "latest"

.github/workflows/prettier.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v2
1111
with:
12-
node-version: '16'
12+
node-version: "16"
1313
- run: npm ci
1414
- name: Prettier
1515
run: npx prettier --write public/data/*.json
@@ -18,4 +18,4 @@ jobs:
1818
- uses: stefanzweifel/git-auto-commit-action@v4
1919
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
2020
with:
21-
commit_message: 'style: format files'
21+
commit_message: "style: format files"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: TriPSs/[email protected]
1717
with:
1818
github-token: ${{ secrets.CHANGELOG_RELEASE }}
19-
version-file: './package.json,./package-lock.json'
19+
version-file: "./package.json,./package-lock.json"
2020

2121
- name: create release
2222
uses: actions/create-release@v1

CONTRIBUTING.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
## 👨‍💻 Prerequisite Skills to Contribute
43

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- Please do not create GitHub issues to report security vulnerabilities.
1+
- Please do not create GitHub issues to report security vulnerabilities.
22
- Instead, report them via <http://eddiejaoude.io/contact>.

components/Footer.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import Link from "next/link";
33
export default function Footer() {
44
return (
55
<footer className="flex justify-center mt-8 italic">
6-
Powered by <Link href="https://github.com/EddieHubCommunity/LinkFree"><span>EddieHub</span></Link>
6+
Powered by{" "}
7+
<Link href="https://github.com/EddieHubCommunity/LinkFree">
8+
<span>EddieHub</span>
9+
</Link>
710
</footer>
811
);
912
}

cypress/integration/common/actions.js

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
1+
import { Given, When, Then } from "cypress-cucumber-preprocessor/steps";
22

3-
Given('I open {string} page', (uri) => {
4-
const baseUrl = 'http://localhost:3000'
5-
let path = ''
3+
Given("I open {string} page", (uri) => {
4+
const baseUrl = "http://localhost:3000";
5+
let path = "";
66
switch (uri) {
7-
case 'home':
8-
path = '/'
9-
break
10-
case 'search':
11-
path = '/search'
12-
break
13-
case 'eddiejaoude':
14-
path = '/eddiejaoude'
15-
break
16-
case '404':
17-
path = '/abcdef'
18-
break
7+
case "home":
8+
path = "/";
9+
break;
10+
case "search":
11+
path = "/search";
12+
break;
13+
case "eddiejaoude":
14+
path = "/eddiejaoude";
15+
break;
16+
case "404":
17+
path = "/abcdef";
18+
break;
1919
default:
20-
path = uri
20+
path = uri;
2121
}
22-
cy.visit(baseUrl + path)
23-
})
22+
cy.visit(baseUrl + path);
23+
});
2424

2525
When(`I click on {string}`, (text) => {
26-
cy.get(`a[href*="${text}"]`).click()
27-
})
26+
cy.get(`a[href*="${text}"]`).click();
27+
});
2828

2929
When(`I type {string} in {string}`, (type, location) => {
30-
cy.get(location).type(type)
31-
})
30+
cy.get(location).type(type);
31+
});
3232

3333
Then(`I should see {string} in the url`, (text) => {
34-
cy.url().should('include', text)
35-
})
34+
cy.url().should("include", text);
35+
});
3636

3737
Then(`I see {string} as a link`, (text) => {
38-
cy.get(`a[href*="${text}"]`).should('have.length', 1)
39-
})
38+
cy.get(`a[href*="${text}"]`).should("have.length", 1);
39+
});
4040

4141
Then(`I see {string} text in section {string}`, (text, location) => {
42-
cy.get(location).should('contain', text)
43-
})
42+
cy.get(location).should("contain", text);
43+
});
4444

4545
Then(`I do not see {string} text in section {string}`, (text, location) => {
46-
cy.get(location).should('not.contain', text)
47-
})
46+
cy.get(location).should("not.contain", text);
47+
});
4848

4949
Then(`I see {string} item on the page`, (location) => {
50-
cy.get(location).should('be.visible')
51-
})
50+
cy.get(location).should("be.visible");
51+
});

cypress/plugins/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
*/
1818
// eslint-disable-next-line no-unused-vars
1919

20-
const cucumber = require('cypress-cucumber-preprocessor').default
20+
const cucumber = require("cypress-cucumber-preprocessor").default;
2121

2222
module.exports = (on, config) => {
2323
// `on` is used to hook into various events Cypress emits
2424
// `config` is the resolved Cypress config
25-
on('file:preprocessor', cucumber())
26-
}
25+
on("file:preprocessor", cucumber());
26+
};

cypress/support/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ***********************************************************
1515

1616
// Import commands.js using ES2015 syntax:
17-
import './commands'
17+
import "./commands";
1818

1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.9'
1+
version: "3.9"
22
services:
33
mongodb:
44
image: mongo

kubernetes/ingress.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
nginx.ingress.kubernetes.io/rewrite-target: /
77
spec:
88
rules:
9-
- host: 'linkfree.eddiehub.org'
9+
- host: "linkfree.eddiehub.org"
1010
http:
1111
paths:
1212
- path: /
@@ -16,7 +16,7 @@ spec:
1616
name: eddiehub-linkfree-service
1717
port:
1818
number: 5000
19-
- host: 'linkfree.eddiehub.io'
19+
- host: "linkfree.eddiehub.io"
2020
http:
2121
paths:
2222
- path: /

pages/search.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ export default function Search({ users }) {
3737
<link rel="icon" href="/favicon.ico" />
3838
</Head>
3939
<div className="flex flex-col px-6 align-center">
40-
<h1 className="text-3xl mb-4 font-bold underline">Search</h1>
41-
<input
42-
placeholder="Search users"
43-
className="border-2 hover:border-sky-500 transition-all duration-250 ease-linear rounded px-6 py-2"
44-
name="keyword"
45-
onChange={(e) => filterData(e.target.value)}
46-
/>
47-
<ul>
48-
{filteredUsers.map((user) => (
49-
<li key={user.username}>
50-
<UserPreview profile={user} />
51-
</li>
52-
))}
53-
</ul>
40+
<h1 className="text-3xl mb-4 font-bold underline">Search</h1>
41+
<input
42+
placeholder="Search users"
43+
className="border-2 hover:border-sky-500 transition-all duration-250 ease-linear rounded px-6 py-2"
44+
name="keyword"
45+
onChange={(e) => filterData(e.target.value)}
46+
/>
47+
<ul>
48+
{filteredUsers.map((user) => (
49+
<li key={user.username}>
50+
<UserPreview profile={user} />
51+
</li>
52+
))}
53+
</ul>
5454
</div>
5555
</>
5656
);

0 commit comments

Comments
 (0)