mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-08 12:28:44 +08:00
Initial empty app
This commit is contained in:
3
src/nginxconfig/i18n/en/index.js
Normal file
3
src/nginxconfig/i18n/en/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import templates from './templates';
|
||||
|
||||
export default { templates };
|
5
src/nginxconfig/i18n/en/templates/app.js
Normal file
5
src/nginxconfig/i18n/en/templates/app.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export default {
|
||||
title: 'NGINXConfig',
|
||||
description: '',
|
||||
oss: 'This tool is {link|open-source on GitHub|https://github.com/do-community/nginxconfig-vue} under the {link|Apache-2.0|https://github.com/do-community/nginxconfig-vue/blob/master/LICENSE} license! We welcome feedback and contributions.',
|
||||
};
|
3
src/nginxconfig/i18n/en/templates/index.js
Normal file
3
src/nginxconfig/i18n/en/templates/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import app from './app';
|
||||
|
||||
export default { app };
|
6
src/nginxconfig/i18n/index.js
Normal file
6
src/nginxconfig/i18n/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import en from './en';
|
||||
|
||||
const lang = 'en';
|
||||
const packs = { en };
|
||||
|
||||
export default packs[lang];
|
27
src/nginxconfig/index.html
Normal file
27
src/nginxconfig/index.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!--
|
||||
Copyright 2020 DigitalOcean
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<extends src="../build/base.html">
|
||||
<block name="title">NGINXConfig | </block>
|
||||
<block name="head">
|
||||
<link rel="stylesheet" href="scss/style.scss">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css" integrity="sha256-UzFD2WYH2U1dQpKDjjZK72VtPeWP50NoJjd26rnAdUI=" crossorigin="anonymous" />
|
||||
</block>
|
||||
<block name="content">
|
||||
<div id="app"></div>
|
||||
<script src="mount.js"></script>
|
||||
</block>
|
||||
</extends>
|
27
src/nginxconfig/mount.js
Normal file
27
src/nginxconfig/mount.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import 'babel-polyfill';
|
||||
|
||||
import Vue from 'vue';
|
||||
import App from './templates/app.vue';
|
||||
import i18n from './i18n';
|
||||
|
||||
document.head.title = i18n.templates.app.title;
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
}).$mount('#app');
|
18
src/nginxconfig/scss/style.scss
Normal file
18
src/nginxconfig/scss/style.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
$header: #0071fe;
|
||||
@import "~do-bulma/src/style";
|
50
src/nginxconfig/templates/app.vue
Normal file
50
src/nginxconfig/templates/app.vue
Normal file
@@ -0,0 +1,50 @@
|
||||
<!--
|
||||
Copyright 2020 DigitalOcean
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<template>
|
||||
<div class="all do-bulma">
|
||||
<Header :title="i18n.templates.app.title">
|
||||
<template v-slot:description>
|
||||
{{ i18n.templates.app.description }}
|
||||
</template>
|
||||
<template v-slot:header>
|
||||
</template>
|
||||
<template v-slot:buttons>
|
||||
</template>
|
||||
</Header>
|
||||
|
||||
<Footer :text="i18n.templates.app.oss"></Footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import i18n from '../i18n';
|
||||
import Header from 'do-vue/src/templates/header';
|
||||
import Footer from 'do-vue/src/templates/footer';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
Header,
|
||||
Footer,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
i18n,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
2
src/static/robots.txt
Normal file
2
src/static/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
Reference in New Issue
Block a user