1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 12:52:31 +03:00
guide/front
avele 613ecf8c9a
Adaptation for mobile screens (#340)
* Consistent headings and paragraph styles for entire app

* Search adopted for mobile

* Category item adapted for mobile

* Consistent category header icon sizes and paddings, relatively rest of category page

* Hide logo when search input displayed on mobile

* removed excess css rule

* font size and line height changed

* Badge adjusted for new font size

* Lists margins added

* Footer padding and margins adapted for mobile

* Markdown editor correct focus on open

* Markdown editor autofocus now optionabe

* Typo fix

* Markdown editor component more props and styling

* Markdown editor border stylings

* Conflict dialog refactor and adapting for mobiles

* Typo fix

* Categories page restyled and adapted for mobiles

* Categories page group titles allow break words

* Removed excess comparison
2019-07-24 19:33:02 +04:00
..
build Correct pass of url to vue-template compiler rendering function; fixes #324 2019-07-12 14:52:18 +04:00
client Adaptation for mobile screens (#340) 2019-07-24 19:33:02 +04:00
types Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
utils Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
.editorconfig Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
.gitignore Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
babel.config.js Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
config.js Front: config api url can be set through enviroment variable 2019-04-19 15:44:46 +04:00
index.html Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
package-lock.json Bump lodash from 4.17.11 to 4.17.13 in /front (#331) 2019-07-12 19:46:24 +04:00
package.json Bump lodash from 4.17.11 to 4.17.13 in /front (#331) 2019-07-12 19:46:24 +04:00
postcss.config.js 404 page (#293) 2019-05-20 23:19:38 +04:00
prod.tsconfig.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
README.md npm run 2019-07-04 20:14:08 +03:00
server.ts Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
tsconfig.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
tslint.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00

Commands

  • npm run dev - Start developing environment (starts both server and setup client middleware for server).
  • npm run build - Builds to /dist folder. Compiles (from ts to js) server right in dist folder, client files compiled in /dist/src.

Deploy process

Requirements: Node version should be >= 11, because of using fs async methods which experimental now.

  1. git pull

  2. npm i

  3. Now you have a choice how to set PORT and API_URL. Either set them in front/config.js, or use export (set) PORT=%port_number% API_URL=%api_url% (for example "http://localhost:4400" quotes matter) with dev commands.

  4. npm run build

  5. cd dist

  6. npm i

  7. export (set) NODE_ENV=production

  8. node server