diff --git a/CHANGELOG.md b/CHANGELOG.md index ef0bbfc..e5c52b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Release Notes +## Version 2.3.1 +- better vote history design and added timestamps +- adjusted player menu styling on smaller screens +- improved CONTRIBUTING.md description of hosting your own copy + +--- + ## Version 2.3.0 - added spoiler role (Lycanthrope!) - fixed copy to clipboard in Firefox @@ -8,7 +15,7 @@ --- ## Version 2.2.1 -- clearing players / roles now also clears Fabled (closes #85) +- clearing players / roles now also clears Fabled - fix list of locked votes showing unlocked votes sometimes --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 00c34d2..cea9e5e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,6 +43,20 @@ $ npm install The development server can be started with `npm run serve`. +### Deploying to GitHub pages or with a non-root path + +Deploying a forked version to GitHub Pages or running your local +development copy in a sub-path (instead of the web root) will require you to modify +the `vue.config.js` and configure the path at which the website will be served. + +For example, deploying your forked `townsquare` project to GitHub pages would need the following +`vue.config.js` changes: +```js +module.exports = { + publicPath: process.env.NODE_ENV === "production" ? "/townsquare/" : "/" +}; +``` + ### Committing Changes Commit messages should be verbose enough to allow someone else to follow your changes and should include references to issues that are being worked on. @@ -64,6 +78,10 @@ $ npm run lint - **`dist`**: contains built files for distribution. +- **`public`**: static assets and templates that don't need to be built dynamically. + +- **`server`**: NodeJS code for the live session backend server. + - **`src`**: contains the source code. The codebase is written in ES2015. - **`assets`**: contains all graphical assets like images, fonts, icons, etc. @@ -73,9 +91,13 @@ $ npm run lint - **`fonts`**: webfonts used on the page - **`icons`**: character token icons + + - **`sounds`**: sound effects used on the page - **`components`**: the internal components used in the project - **`modals`**: the modals have a separate subfolder - **`store`**: the VueX data store and modules + + - **`modules`**: VueX modules that live in their own namespace diff --git a/package-lock.json b/package-lock.json index 8357c6e..95bf1bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "townsquare", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e93d0aa..8a9c3c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "townsquare", - "version": "2.3.0", + "version": "2.3.1", "description": "Blood on the Clocktower Town Square", "author": "Steffen Baumgart", "scripts": { diff --git a/src/components/Player.vue b/src/components/Player.vue index ecfd808..91f8f5a 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -675,7 +675,7 @@ li.move:not(.from) .player .overlay svg.move { border: 10px solid transparent; border-right-color: black; right: 100%; - bottom: 7px; + bottom: 5px; margin-right: 2px; } diff --git a/src/components/modals/VoteHistoryModal.vue b/src/components/modals/VoteHistoryModal.vue index a8f08f0..93afa6a 100644 --- a/src/components/modals/VoteHistoryModal.vue +++ b/src/components/modals/VoteHistoryModal.vue @@ -15,22 +15,50 @@
Time | Nominator | Nominee | Type | +Votes | Majority | -
+ |
|
+ {{ + vote.timestamp + .getHours() + .toString() + .padStart(2, "0") + }}:{{ + vote.timestamp + .getMinutes() + .toString() + .padStart(2, "0") + }} + | {{ vote.nominator }} | {{ vote.nominee }} | {{ vote.type }} | -{{ vote.majority }} |
{{ vote.votes.length }}
- |
+
+ {{ vote.majority }}
+ |
+ {{ vote.votes.join(", ") }} |