Skip to content

Commit

Permalink
chore: use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
levino committed Nov 24, 2023
1 parent 613eb35 commit ab5e0e7
Show file tree
Hide file tree
Showing 52 changed files with 730 additions and 729 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
extends: ['custom'],
settings: {
next: {
rootDir: ["apps/*/"],
rootDir: ['apps/*/'],
},
},
};
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: ["master"]
branches: ['master']
pull_request:
types: [opened, synchronize]

Expand All @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singleQuote: true
2 changes: 1 addition & 1 deletion apps/homepage/_config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: JSON Resume
description: "JSON Resume is a community driven open source initiative to create a JSON based standard for resumes."
description: 'JSON Resume is a community driven open source initiative to create a JSON based standard for resumes.'
permalink: pretty
markdown: kramdown
include:
Expand Down
46 changes: 23 additions & 23 deletions apps/homepage/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag('js', new Date());

gtag("config", "G-P4B6R43X2F");
gtag('config', 'G-P4B6R43X2F');
</script>
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
Expand Down Expand Up @@ -100,15 +100,15 @@
<script defer>
function countUp(a, b, c, d, e, f) {
for (
var g = 0, h = ["webkit", "moz", "ms"], i = 0;
var g = 0, h = ['webkit', 'moz', 'ms'], i = 0;
i < h.length && !window.requestAnimationFrame;
++i
)
(window.requestAnimationFrame =
window[h[i] + "RequestAnimationFrame"]),
window[h[i] + 'RequestAnimationFrame']),
(window.cancelAnimationFrame =
window[h[i] + "CancelAnimationFrame"] ||
window[h[i] + "CancelRequestAnimationFrame"]);
window[h[i] + 'CancelAnimationFrame'] ||
window[h[i] + 'CancelRequestAnimationFrame']);
window.requestAnimationFrame ||
(window.requestAnimationFrame = function (a) {
var c = new Date().getTime(),
Expand All @@ -125,12 +125,12 @@
(this.options = f || {
useEasing: !0,
useGrouping: !0,
separator: ",",
decimal: ".",
separator: ',',
decimal: '.',
}),
"" == this.options.separator && (this.options.useGrouping = !1);
'' == this.options.separator && (this.options.useGrouping = !1);
var j = this;
(this.d = "string" == typeof a ? document.getElementById(a) : a),
(this.d = 'string' == typeof a ? document.getElementById(a) : a),
(this.startVal = Number(b)),
(this.endVal = Number(c)),
(this.countDown = this.startVal > this.endVal ? !0 : !1),
Expand All @@ -143,7 +143,7 @@
(this.dec = Math.pow(10, this.decimals)),
(this.duration = 1e3 * e || 2e3),
(this.version = function () {
return "1.1.2";
return '1.1.2';
}),
(this.easeOutExpo = function (a, b, c, d) {
return (1024 * c * (-Math.pow(2, (-10 * a) / d) + 1)) / 1023 + b;
Expand Down Expand Up @@ -186,9 +186,9 @@
(j.callback = a),
isNaN(j.endVal) || isNaN(j.startVal)
? (console.log(
"countUp error: startVal or endVal is not a number"
'countUp error: startVal or endVal is not a number'
),
(j.d.innerHTML = "--"))
(j.d.innerHTML = '--'))
: (j.rAF = requestAnimationFrame(j.count)),
!1
);
Expand All @@ -209,17 +209,17 @@
requestAnimationFrame(j.count);
}),
(this.formatNumber = function (a) {
a += "";
a += '';
var b, c, d, e;
if (
((b = a.split(".")),
((b = a.split('.')),
(c = b[0]),
(d = b.length > 1 ? j.options.decimal + b[1] : ""),
(d = b.length > 1 ? j.options.decimal + b[1] : ''),
(e = /(\d+)(\d{3})/),
j.options.useGrouping)
)
for (; e.test(c); )
c = c.replace(e, "$1" + j.options.separator + "$2");
c = c.replace(e, '$1' + j.options.separator + '$2');
return c + d;
}),
(j.d.innerHTML = j.formatNumber(j.startVal.toFixed(j.decimals)));
Expand Down Expand Up @@ -292,7 +292,7 @@
></script>
<script defer>
(function (i, s, o, g, r, a, m) {
i["GoogleAnalyticsObject"] = r;
i['GoogleAnalyticsObject'] = r;
(i[r] =
i[r] ||
function () {
Expand All @@ -306,13 +306,13 @@
})(
window,
document,
"script",
"//www.google-analytics.com/analytics.js",
"ga"
'script',
'//www.google-analytics.com/analytics.js',
'ga'
);

ga("create", "UA-74754546-1", "auto");
ga("send", "pageview");
ga('create', 'UA-74754546-1', 'auto');
ga('send', 'pageview');
</script>
<script src="/js/main.js" defer></script>
</body>
Expand Down
18 changes: 9 additions & 9 deletions apps/homepage/_layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ <h2>{{ page.title }}</h2>
<hr />
<div id="disqus_thread"></div>
<script>
var disqus_shortname = "jsonresume";
var disqus_url = "http://jsonresume.org{{page.url}}";
var disqus_identifier = "{{page.url}}";
var disqus_title = "{{page.title}}";
var disqus_shortname = 'jsonresume';
var disqus_url = 'http://jsonresume.org{{page.url}}';
var disqus_identifier = '{{page.url}}';
var disqus_title = '{{page.title}}';
(function () {
var dsq = document.createElement("script");
dsq.type = "text/javascript";
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js";
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(
document.getElementsByTagName("head")[0] ||
document.getElementsByTagName("body")[0]
document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]
).appendChild(dsq);
})();
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "First Official Release"
title: 'First Official Release'
date: 2014-07-31 14:18:05
permalink: /blog/first-official-release/
author: Thomas Davis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "Announcing our first service integration"
title: 'Announcing our first service integration'
date: 2014-09-09 14:18:05
permalink: /blog/first-service-integration/
author: Thomas Davis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "Theme Competition - Sponsored by Hired.com"
title: 'Theme Competition - Sponsored by Hired.com'
date: 2014-11-09 14:18:05
permalink: /blog/monthly-theme-competition-sponsored-by-hired/
author: Thomas Davis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "5th Birthday and New Features"
title: '5th Birthday and New Features'
date: 2019-06-27 14:18:05
permalink: /blog/5th-birthday-new-features/
---
Expand Down
16 changes: 8 additions & 8 deletions apps/homepage/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body {
body {
color: #222;
background: #fff;
font: 14px "Open Sans";
font: 14px 'Open Sans';
margin: 0;
overflow-x: hidden;
}
Expand All @@ -17,7 +17,7 @@ a:hover {
transition: all 0.25s;
}
h1 {
font: 300 40px "Open Sans";
font: 300 40px 'Open Sans';
margin: 0;
}
h1,
Expand Down Expand Up @@ -147,15 +147,15 @@ pre {
#sidebar a {
display: block;
color: #000;
font: 600 15px "Open Sans";
font: 600 15px 'Open Sans';
padding: 15px 30px;
}
#sidebar a + a {
border-top: 1px solid #e3e3e3;
}
#nav {
background: #fff18f;
font: 600 15px "Open Sans";
font: 600 15px 'Open Sans';
overflow: hidden;
}
#nav button {
Expand Down Expand Up @@ -242,7 +242,7 @@ pre {
}
#search:before {
color: #ccc;
content: "\f002";
content: '\f002';
cursor: text;
font: 24px FontAwesome;
position: absolute;
Expand Down Expand Up @@ -356,7 +356,7 @@ pre {
margin-top: 0;
margin-bottom: 0.5em;
}
#schema .row div[class^="col-sm-"] {
#schema .row div[class^='col-sm-'] {
margin-bottom: 30px;
}
#themes {
Expand Down Expand Up @@ -460,13 +460,13 @@ pre {
#team .person .github:before {
color: #ccc;
font: 14px FontAwesome;
content: "\f09b";
content: '\f09b';
margin-right: 6px;
}
#team .person .twitter:before {
color: #ddd;
font: 14px FontAwesome;
content: "\f099";
content: '\f099';
margin-right: 6px;
}
#footer {
Expand Down
26 changes: 13 additions & 13 deletions apps/homepage/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ jQuery(() => {
* Apply the class "active" to the current page in the navigation bar.
*/
function highlight() {
$("#nav a").each(function () {
$('#nav a').each(function () {
const self = $(this);
const href = self.attr("href");
const href = self.attr('href');
const path = window.location.pathname;

if (path === href) {
self.addClass("active");
self.siblings().removeClass("active");
self.addClass('active');
self.siblings().removeClass('active');
}
});
}

function equalizeFeatureHeight() {
const start = $("#start");
const start = $('#start');

if (!start.length) return;

setInterval(() => {
let max = 0;
const items = start.find(".feature p");
const items = start.find('.feature p');

items.css("height", "auto").each(function () {
items.css('height', 'auto').each(function () {
const h = $(this).height();

if (h > max) max = h;
Expand All @@ -40,18 +40,18 @@ function equalizeFeatureHeight() {
}

function enableSidebar() {
const viewport = $("#viewport");
const viewport = $('#viewport');

$(".lt").on("touchstart click", (e) => {
$('.lt').on('touchstart click', (e) => {
e.stopPropagation();
e.preventDefault();
viewport.toggleClass("open");
viewport.toggleClass('open');
});

$(".inner").on("touchstart click", (e) => {
if (viewport.hasClass("open")) {
$('.inner').on('touchstart click', (e) => {
if (viewport.hasClass('open')) {
e.stopPropagation();
viewport.removeClass("open");
viewport.removeClass('open');
}
});
}
2 changes: 1 addition & 1 deletion apps/registry/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ["custom"],
extends: ['custom'],
};
4 changes: 2 additions & 2 deletions apps/registry/lib/prisma.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient } from "@prisma/client/edge";
import { PrismaClient } from '@prisma/client/edge';

// PrismaClient is attached to the `global` object in development to prevent
// exhausting your database connection limit.
Expand All @@ -8,7 +8,7 @@ import { PrismaClient } from "@prisma/client/edge";

let prisma;

if (process.env.NODE_ENV === "production") {
if (process.env.NODE_ENV === 'production') {
prisma = new PrismaClient();
} else {
if (!global.prisma) {
Expand Down
Loading

0 comments on commit ab5e0e7

Please sign in to comment.