diff --git a/public_html/page/teacher.php b/public_html/page/teacher.php
new file mode 100644
index 0000000..bbc3a02
--- /dev/null
+++ b/public_html/page/teacher.php
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+ Gestion des enseignants
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/webpack.config.js b/webpack.config.js
index 67d946b..991f91f 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -50,12 +50,12 @@ module.exports = [ {
}, {
- name: "login",
- entry: './webpack/page/login.js',
+ name: "teacher",
+ entry: './webpack/page/teacher.js',
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
- filename: 'login@0.js'
+ filename: 'teacher@0.js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false
diff --git a/webpack/component/teacher/view.vue b/webpack/component/teacher/view.vue
new file mode 100644
index 0000000..83f7d2f
--- /dev/null
+++ b/webpack/component/teacher/view.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+ Some Title
+
+
+
+
+ Some Title
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/webpack/data/teacher.js b/webpack/data/teacher.js
new file mode 100644
index 0000000..8fe87e0
--- /dev/null
+++ b/webpack/data/teacher.js
@@ -0,0 +1 @@
+gstore.add('blo', 12);
diff --git a/webpack/page/teacher.js b/webpack/page/teacher.js
new file mode 100644
index 0000000..ebef86d
--- /dev/null
+++ b/webpack/page/teacher.js
@@ -0,0 +1,35 @@
+/* (1) Imports
+---------------------------------------------------------*/
+/* (1) NPM libs */
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+import routes from '../routes/teacher'
+
+/* (2) Vues */
+import wrapper_vue from '../vue/wrapper.vue'
+
+/* (3) Data */
+require('../data/common');
+require('../data/teacher');
+
+
+
+
+/* (2) Initialisation
+---------------------------------------------------------*/
+/* (1) Init Router */
+const router = new VueRouter({
+ mode: 'history',
+ routes: routes[0]
+});
+
+/* (2) Store router in gstore */
+gstore.add('router', router);
+
+/* (3) Render view */
+Vue.use(VueRouter);
+new Vue({
+ el: '#main-vue',
+ router,
+ render: h => h(wrapper_vue)
+});
\ No newline at end of file
diff --git a/webpack/routes/teacher.js b/webpack/routes/teacher.js
new file mode 100644
index 0000000..82da2d3
--- /dev/null
+++ b/webpack/routes/teacher.js
@@ -0,0 +1,11 @@
+export default{ 0: [
+
+ {
+ path: '/teacher/view/',
+ component: require('../component/teacher/view.vue').default
+ }, {
+ path: '*',
+ redirect: '/teacher/view/'
+ }
+
+]}
\ No newline at end of file