mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-02-11 23:51:46 +00:00
Run prettier
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Koodiklinikka
|
||||
|
||||

|
||||
|
||||
<img align="right" src="./public/static/images/logo-new-black.svg" alt="Koodiklinikka-logo" max-width="30%">
|
||||
@@ -13,7 +14,7 @@
|
||||
- projektin hallintaan liittyviin asioihin
|
||||
- tai koko Koodiklinikkaan yleisesti.
|
||||
|
||||
-----------------------------
|
||||
---
|
||||
|
||||
## Projektin asennus
|
||||
|
||||
@@ -41,7 +42,6 @@ yarn start
|
||||
|
||||
Avaa selaimessasi: [`http://localhost:3000`](http://localhost:3000)
|
||||
|
||||
|
||||
## Komennot
|
||||
|
||||
### `yarn`
|
||||
|
||||
12
TODO.md
12
TODO.md
@@ -1,6 +1,6 @@
|
||||
* Stripe
|
||||
* Test ID `pk_test_OmNve9H1OuORlmD4rblpjgzh`
|
||||
* Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC`
|
||||
* API integration (test backend `https://lit-plateau-4689.herokuapp.com/`)
|
||||
* Hero video
|
||||
* Deployment
|
||||
- Stripe
|
||||
- Test ID `pk_test_OmNve9H1OuORlmD4rblpjgzh`
|
||||
- Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC`
|
||||
- API integration (test backend `https://lit-plateau-4689.herokuapp.com/`)
|
||||
- Hero video
|
||||
- Deployment
|
||||
|
||||
@@ -8,7 +8,10 @@ function renderStringWithChannelRefs(value: string) {
|
||||
const matches = str.match(/<#([A-Z0-9]+)\|([A-Za-z0-9]+)>/);
|
||||
if (matches) {
|
||||
return (
|
||||
<a href={`https://app.slack.com/client/T03BQ3NU9/${matches[1]}`} key={i}>
|
||||
<a
|
||||
href={`https://app.slack.com/client/T03BQ3NU9/${matches[1]}`}
|
||||
key={i}
|
||||
>
|
||||
#{matches[2]}
|
||||
</a>
|
||||
);
|
||||
@@ -19,8 +22,11 @@ function renderStringWithChannelRefs(value: string) {
|
||||
);
|
||||
}
|
||||
|
||||
export const ChannelReferenceRenderer = ({ children }: React.PropsWithChildren<{}>) => {
|
||||
export const ChannelReferenceRenderer = ({
|
||||
children,
|
||||
}: React.PropsWithChildren<{}>) => {
|
||||
// TODO: this should probably walk the tree
|
||||
if (typeof children[0] === "string") return renderStringWithChannelRefs(children[0]);
|
||||
if (typeof children[0] === "string")
|
||||
return renderStringWithChannelRefs(children[0]);
|
||||
return <>{children}</>;
|
||||
};
|
||||
|
||||
@@ -32,7 +32,8 @@ const fieldNameTranslations = {
|
||||
postcode: { fi: "Postinumero" },
|
||||
};
|
||||
|
||||
const mailValidateRe = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
const mailValidateRe =
|
||||
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
|
||||
function validateEmail(email) {
|
||||
return mailValidateRe.test(email);
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
const sponsors = [
|
||||
{
|
||||
name: "Futurice",
|
||||
href: "https://futurice.com/",
|
||||
},
|
||||
{
|
||||
name: "Metosin",
|
||||
href: "https://www.metosin.fi/",
|
||||
},
|
||||
{
|
||||
name: "Solita",
|
||||
href: "https://www.solita.fi/",
|
||||
},
|
||||
{
|
||||
name: "Wakeone",
|
||||
href: "https://wakeone.co/",
|
||||
},
|
||||
{
|
||||
name: "Nordea",
|
||||
href: "https://www.nordea.fi/",
|
||||
},
|
||||
{
|
||||
name: "Idean",
|
||||
href: "https://www.idean.com/",
|
||||
},
|
||||
{
|
||||
name: "Rare",
|
||||
href: "https://rare.fi/",
|
||||
},
|
||||
];
|
||||
export default sponsors;
|
||||
const sponsors = [
|
||||
{
|
||||
name: "Futurice",
|
||||
href: "https://futurice.com/",
|
||||
},
|
||||
{
|
||||
name: "Metosin",
|
||||
href: "https://www.metosin.fi/",
|
||||
},
|
||||
{
|
||||
name: "Solita",
|
||||
href: "https://www.solita.fi/",
|
||||
},
|
||||
{
|
||||
name: "Wakeone",
|
||||
href: "https://wakeone.co/",
|
||||
},
|
||||
{
|
||||
name: "Nordea",
|
||||
href: "https://www.nordea.fi/",
|
||||
},
|
||||
{
|
||||
name: "Idean",
|
||||
href: "https://www.idean.com/",
|
||||
},
|
||||
{
|
||||
name: "Rare",
|
||||
href: "https://rare.fi/",
|
||||
},
|
||||
];
|
||||
export default sponsors;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const withStylus = require('@zeit/next-stylus');
|
||||
const withLess = require('@zeit/next-less');
|
||||
const withFonts = require('next-fonts');
|
||||
const withStylus = require("@zeit/next-stylus");
|
||||
const withLess = require("@zeit/next-less");
|
||||
const withFonts = require("next-fonts");
|
||||
module.exports = withFonts(withLess(withStylus()));
|
||||
|
||||
@@ -11,8 +11,8 @@ class CustomNextHead extends Head {
|
||||
// https://github.com/zeit/next-plugins/issues/364
|
||||
getCssLinks({ allFiles }) {
|
||||
return allFiles
|
||||
.filter(file => file.endsWith(".css"))
|
||||
.map(file => (
|
||||
.filter((file) => file.endsWith(".css"))
|
||||
.map((file) => (
|
||||
<style
|
||||
key={file}
|
||||
nonce={this.props.nonce}
|
||||
|
||||
@@ -1 +1,19 @@
|
||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
||||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user