Category: HTML/CSS
-
Post Views: 13 1. There are 3 applications in the directory structure at this stage, namely: Frontend, Backend, and API, and their domain names are configured as :http://www.channel-pub-api.localhost/,http://www.channel-pub-api.localhost/backend,http://www.channel-pub-api.localhost/api 2. Edit the hosts file 3. Reference:https://github.com/mickgeek/yii2-advanced-one-domain-config/blob/master/vhosts/nginx.conf, edit \frontend\config\main.php 4. Edit \backend\config\main.php, set the baseURL, separate session and cookie 5. Edit \api\config\main.php 6. Edit \api\config\urlmanager.php 7. Edit \environments\dev\frontend\web\robots.txt, \environments\prod\frontend\web\robots.txt Before editing: After…
-
Post Views: 16 1. Previous:https://www.shuijingwanwq.com/2017/11/30/2084/ 2. The existing default interface, as shown in Figure 1 3. The designed UI interface needs to be implemented in this way, as shown in Figure 2 4. Copy:\vendor\bower\admin-lte\build\less\variables.less To: \backend\web\themes\default\css\variables.less, clear all the contents 5. Create a new one: \backend\web\themes\default\css\_all-skins.less, as shown in Figure 3 6. Create a new one: \backend\web\themes\default\css\adminlte.less, as shown in…
-
Post Views: 14 1. Use npm to install the less compiler, check the npm version, as shown in Figure 1 npm -v 2. Install the Less compiler globally, run npm in phpstorm, select file, and open settings, as shown in Figure 2 3. Click Node.js and npm under “Language and Framework”, and on the opened Node.js and npm page, pack…
-
Post Views: 50 1. Install V3 through npm, as shown in Figure 1 npm install bootstrap@3 2. Install Grunt to compile css and javascript files. Due to the slow installation speed of npm, finally choose cnpm, as shown in Figure 2 (1) Install grunt-cli in the global environment:npm install -g grunt-cli (2) Enter the /bootstrap/ root directory, and then execute…