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
name: CI/CD | |
concurrency: | |
group: ${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- staging |
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 { next } from "@vercel/edge" | |
export default async function middleware(req: Request) { | |
const userAgent = req.headers.get("user-agent") | |
console.log("userAgent", userAgent) | |
console.log("req", req) | |
if (req.url.includes("/robots.txt")) { | |
return next() | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="item">Item 1</div> | |
<div class="item">Item 2</div> | |
<div class="item">Item 3</div> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="item">Item 1</div> | |
<div class="item">Item 2</div> | |
<div class="item">Item 3</div> |
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
.your-class-name { | |
margin-top: 16px; | |
margin-right: 12px; | |
margin-bottom: 16px; | |
} | |
// shorthand | |
.your-class-name { | |
margin: 16px 12px; | |
} |
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
.your-class-name { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
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 Vue from 'vue' | |
import Vuex from 'vuex' | |
// Modules import | |
import UserModule from 'modules/user' | |
import OrganisationModule from 'modules/organisation' | |
Vue.use(Vuex) | |
const state = {} |
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 actions from './actions.js' | |
import mutations from './mutations.js' | |
import getters from './getters.js' | |
const state = {} | |
export default { | |
namespaced: true, | |
state, | |
actions, |
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 { SET_USER, SET_USER_LOCATION } from './types.js' | |
export default { | |
[SET_USER]() {}, | |
[SET_USER_LOCATION]() {} | |
} |
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
// actions | |
export const SET_USER = 'SET_USER' | |
export const SET_USER_LOCATION = 'SET_USER_LOCATION' | |
// mutations | |
// getters |
NewerOlder