-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Breno Douglas
committed
Dec 29, 2017
1 parent
c70b73c
commit 45e4fdd
Showing
6 changed files
with
136 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<footer> | ||
Visit our website for more documentation : <a href="https://nuxtjs.org" target="_blank">nuxtjs.org</a> | ||
</footer> | ||
<div> | ||
<slot></slot> | ||
</div> | ||
</template> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<section class="container"> | ||
<img src="../assets/img/logo.png" alt="Nuxt.js Logo" class="logo" /> | ||
<h1 class="title"> | ||
This page is loaded from the {{ name }} | ||
</h1> | ||
<h2 class="info" v-if="name === 'client'"> | ||
Please refresh the page | ||
</h2> | ||
|
||
<ul> | ||
<li v-for="category in data"> | ||
{{category.id}} - {{category.name}} | ||
</li> | ||
</ul> | ||
|
||
<nuxt-link class="button" to="/"> | ||
Home page | ||
</nuxt-link> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data ({ req }) { | ||
return { name: req ? 'server' : 'client' } | ||
}, | ||
methods() { | ||
return { | ||
} | ||
} | ||
head () { | ||
return { | ||
title: `About Page (${this.name}-side)` | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.title | ||
{ | ||
margin-top: 50px; | ||
} | ||
.info | ||
{ | ||
font-weight: 300; | ||
color: #9aabb1; | ||
margin: 0; | ||
margin-top: 10px; | ||
} | ||
.button | ||
{ | ||
margin-top: 50px; | ||
} | ||
</style> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php namespace Site\Admin\Updates; | ||
|
||
use Schema; | ||
use October\Rain\Database\Updates\Migration; | ||
|
||
/** | ||
* create v1 tables | ||
*/ | ||
class CreateV1Tables extends Migration | ||
{ | ||
|
||
public function up() | ||
{ | ||
Schema::create('site_admin_user', function($table) | ||
{ | ||
$table->engine = 'InnoDB'; | ||
$table->increments('id'); | ||
$table->string('name'); | ||
$table->string('tel'); | ||
$table->string('password'); | ||
$table->string('email'); | ||
$table->integer('role'); | ||
// $table->integer('user_id')->unsigned()->nullable()->index(); | ||
$table->timestamps(); | ||
}); | ||
|
||
Schema::create('site_admin_condo', function($table) | ||
{ | ||
$table->engine = 'InnoDB'; | ||
$table->increments('id'); | ||
$table->string('name'); | ||
$table->string('whatsapp'); | ||
$table->string('telegram'); | ||
$table->string('facebook'); | ||
$table->integer('user_id')->unsigned()->nullable()->index(); | ||
$table->timestamps(); | ||
}); | ||
|
||
Schema::create('site_admin_event', function($table) | ||
{ | ||
$table->engine = 'InnoDB'; | ||
$table->increments('id'); | ||
$table->string('name'); | ||
$table->string('whatsapp'); | ||
$table->string('telegram'); | ||
$table->string('facebook'); | ||
$table->integer('user_id')->unsigned()->nullable()->index(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
|
||
} | ||
} |