<style lang="scss" type="text/scss">
@import "./styles/app.scss";
</style>
@font-face {
font-family: "SuperFont";
src: url("fonts/SuperFont/SuperFontRegular.eot");
src:
local("☺"),
url("fonts/SuperFont/SuperFontRegular.eot?#iefix") format("embedded-opentype"),
url("fonts/SuperFont/SuperFontRegular.woff2") format("woff2"),
url("fonts/SuperFont/SuperFontRegular.woff") format("woff"),
url("fonts/SuperFont/SuperFontRegular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "SuperFont";
src: url("fonts/SuperFont/SuperFontBold.eot");
src:
local("☺"),
url("fonts/SuperFont/SuperFontBold.eot?#iefix") format("embedded-opentype"),
url("fonts/SuperFont/SuperFontBold.woff2") format("woff2"),
url("fonts/SuperFont/SuperFontBold.woff") format("woff"),
url("fonts/SuperFont/SuperFontBold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
body {
font-family: "SuperFont", sans-serif;
}
import Meta from 'vue-meta';
Vue.use(Meta);
import HomePage from '../components/pages/Home.vue';
new Router({
routes: [
{
name: 'home',
path: '/',
component: HomePage,
},
});
<script>
export default {
metaInfo: {
title: 'Vue App',
meta: [
{ vmid: 'description', property: 'description', content: 'Vue App' },
{ vmid: 'og:title', property: 'og:title', content: 'Vue App' },
{ vmid: 'og:description', property: 'og:description', content: 'Vue App' },
],
},
};
</script>
import TestClass from ‘./classes/TestClass‘;
document.addEventListener("DOMContentLoaded", function(event) {
var test = new TestClass();
});
export default class TestClass {
constructor() {
console.log('Hello!')
}
}
import TestClass from ‘./classes/TestClass‘;
const App = {
classes: {
TestClass,
},
};
window.App = App;
{
refresh_token: XXX,
access_token: YYY,
user_id: ZZZ,
client_id: A,
}
server {
listen 80;
server_name _;
root /home/user/www/example.com/public_html;
index index.html;
# example.com/foo// => example.com/foo/
if ($request_uri ~ "^[^?]*?//") {
rewrite "^" $scheme://$host$uri permanent;
}
# example.com/index.html => example.com/
rewrite (?i)^(.*)index\.html$ $1/ permanent;
# example.com/foo => example.com/foo/
rewrite ^([^.]*[^/])$ $1/ permanent;
# example.com/foo.html => example.com/foo/
rewrite (?i)^(.*)/(.*)\.html $1/$2/ permanent;
# prevent access from example.com/index/
location ~ /index/ {
return 404;
}
location / {
# remove slash from url end for access .html files
# example.com/foo/ => example.com/foo
rewrite ^/(.*)/$ /$1 last;
try_files $uri.html $uri $uri/index.html $uri/ =404;
}
}
Вызывается после того, как виртуальный DOM был обновлён из-за изменения данных.
IE9-Edge12, Safari 5.1-6, and UCWeb 11 do not support referencing external files via . Polyfills are available: server-side inlining + snippet - script