This file contains hidden or 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name mysite.com www.mysite.com; | |
access_log /var/log/nginx/reverse-access.log; | |
error_log /var/log/nginx/reverse-error.log; | |
location / { |
This file contains hidden or 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
module.exports = { | |
apps: [ | |
{ | |
name: 'web-app', | |
script: './build/server.js', | |
instances: 'max', | |
exec_mode: 'cluster', | |
autorestart: true, | |
}, | |
], |
This file contains hidden or 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 { createWebHistory, createRouter } from 'vue-router' | |
import Home from '@/views/Home.vue' | |
const routes = [ | |
{ | |
path: '/', | |
name: 'Home', | |
component: Home, | |
}, | |
{ |
This file contains hidden or 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 { createApp } from 'vue' | |
import App from './App.vue' | |
import router from './router/index' | |
createApp(App).use(router).mount('#app') |
This file contains hidden or 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
/* | |
|-------------------------------------------------------------------------- | |
| Routes | |
|-------------------------------------------------------------------------- | |
| | |
| This file is dedicated for defining HTTP routes. A single file is enough | |
| for majority of projects, however you can define routes in different | |
| files and just make sure to import them inside this file. For example | |
| | |
| Define routes in following two files |
This file contains hidden or 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> | |
<link rel="stylesheet" href="{{ mix('/css/app.css') }}"> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
</head> | |
<body> |
This file contains hidden or 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
const mix = require('laravel-mix') | |
const path = require('path') | |
/** | |
* By default, AdonisJS public path for static assets is on the `./public` directory. | |
* | |
* If you want to change Laravel Mix public path, change the AdonisJS public path config first! | |
* See: https://docs.adonisjs.com/guides/static-assets#the-default-directory | |
*/ | |
mix.setPublicPath('public') |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"contractName": "BPool", | |
"abi": [ | |
{ | |
"inputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, |
This file contains hidden or 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 { FunctionalComponent } from 'preact'; | |
import { html } from 'htm/preact'; | |
import { useEffect, useContext } from "preact/hooks"; | |
import style from './style.scss'; | |
import { StoreContext } from '../../services/StoreContext'; | |
import { useObserver } from 'mobx-react-lite'; | |
// Note: `user` comes from the URL, courtesy of our router | |
const Profile: FunctionalComponent = (props: any) => { |
This file contains hidden or 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 { html } from 'htm/preact'; | |
import { Router } from 'preact-router'; | |
import Header from './header'; | |
import { StoreProvider } from '../services/StoreContext'; | |
// Code-splitting is automated for `routes` directory | |
import Home from '../routes/home'; | |
import Profile from '../routes/profile'; |
NewerOlder