Browse Source

add bootstrap ao projeto e a configuração fixa de temas

pull/2485/head
Leandro Roberto 7 years ago
parent
commit
bd37335b1e
  1. 3
      sapl-frontend/package.json
  2. 5
      sapl-frontend/src/theme/main.js
  3. 1
      sapl-frontend/vue.config.js
  4. 4
      sapl/templates/base.html

3
sapl-frontend/package.json

@ -8,7 +8,10 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"bootstrap": "^4.2.1",
"dotenv": "^6.2.0",
"jquery": "^3.3.1",
"popper.js": "^1.14.6",
"vue": "^2.5.21",
"vue-router": "^3.0.1",
"vuex": "^3.0.1",

5
sapl-frontend/src/theme/main.js

@ -0,0 +1,5 @@
import './scss/app.scss'
//eslint-disable-next-line
let theme_lib = THEME_CUSTOM
console.log(theme_lib);

1
sapl-frontend/vue.config.js

@ -46,6 +46,5 @@ module.exports = {
THEME_CUSTOM: JSON.stringify(process.env.THEME_CUSTOM)
}])
.end()
}
}

4
sapl/templates/base.html

@ -29,7 +29,7 @@
{# Scripts #}
{# modernizr must be in head (see http://modernizr.com/docs/#installing) #}
{% endcomment %}
{% render_bundle 'hellow' 'css' %}
{% render_bundle 'theme' 'css' %}
{% endblock %}
</head>
@ -238,7 +238,7 @@
{% endif %}
{% block foot_js %}
{% render_bundle 'hellow' 'js' %}
{% render_bundle 'theme' 'js' %}
{% comment "" %}

Loading…
Cancel
Save