This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { unstable_checkRateLimit as checkRateLimit } from '@vercel/firewall' | |
import { DEFAULT_SERVER_ERROR_MESSAGE, createSafeActionClient,} from 'next-safe-action' | |
import { headers } from 'next/headers' | |
// Creating an action client using the createSafeActionClient function | |
export const actionClient = createSafeActionClient({ | |
// Handling returned server errors | |
handleReturnedServerError(e) { | |
// If the error is an instance of Error, return its message | |
if (e instanceof Error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////// | |
// Generic service like function for | |
// Api requests using axios | |
// @param {String} url - api url | |
// @param {String} method - E.g POST, GET | |
// @param {Body} body - form body if needed | |
// @returns {Promise} data | |
////////////////////////////////////// | |
export const makeRequest = (url, method, body) => { | |
url = encodeURI(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Konto erstellen--> | |
<!doctype html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Titel</title> | |
</head> | |
<body> | |
<h1>Platzhalter Nummer 1</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Kontakt--> | |
<!doctype html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Titel</title> | |
</head> | |
<body> | |
<h1>Platzhalter Nummer 1</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Konto Erstellen--> | |
<!doctype html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Titel</title> | |
</head> | |
<body> | |
<h1>Platzhalter Nummer 1</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.element {-webkit-transform: translateZ(0);-moz-transform: translateZ(0);transform: translateZ(0);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin vertical-align {position: relative;top: 50%;-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);-ms-transform: translateY(-50%);transform: translateY(-50%);} | |
.element {@include vertical-align;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Pull a database dump from remote server, drop the local database, then import the dump" | |
task :pull_database_to_local do | |
# Build out temporary file name with timestamp for uniqueness | |
timestamp = get_timestamp | |
temp_file_name = "database_dump_#{timestamp}" | |
remote_file_name = remote_mysqldump(temp_file_name) | |
download(remote_file_name, "/tmp/#{temp_file_name}.sql.gz") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Pull a database dump from remote server, drop the local database, then import the dump" | |
task :pull_database_to_local do | |
# Build out temporary file name with timestamp for uniqueness | |
timestamp = get_timestamp | |
temp_file_name = "database_dump_#{timestamp}" | |
remote_file_name = remote_mysqldump(temp_file_name) | |
download(remote_file_name, "/tmp/#{temp_file_name}.sql.gz") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.core-sprite, .core-icon-facebook, .core-icon-linkedin, .core-icon-skype, .core-logo { background: url('../img/core-s323b60b8ee.png') no-repeat; } | |
.core-icon-facebook { background-position: 0 -113px; height: 32px; width: 32px; } | |
.core-icon-linkedin { background-position: 0 -81px; height: 32px; width: 32px; } | |
.core-icon-skype { background-position: 0 -49px; height: 32px; width: 32px; } | |
.core-logo { background-position: 0 0; height: 49px; width: 179px; } |
NewerOlder