Browse Source

v1.1.1: documented percentage fix

CrazyDoctor 2 months ago
parent
commit
cedc1427d4
3 changed files with 5 additions and 3 deletions
  1. 1 1
      package.json
  2. 3 1
      src/views/statistics.pug
  3. 1 1
      static/page/class/script.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "doczilla_js_docs",
-	"version": "1.1.0",
+	"version": "1.1.1",
 	"dependencies": {
 		"@types/sqlite3": "^3.1.11",
 		"@types/ws": "^8.5.10",

+ 3 - 1
src/views/statistics.pug

@@ -13,6 +13,7 @@ html
 		include imports/cdclientlib.import.pug
 		include imports/jquery.import.pug
 		include imports/global.import.pug
+		include modules/context-menu.module.pug
 		include modules/statistics.module.pug 
 		include imports/socket.import.pug
 		include imports/page.import.pug
@@ -25,4 +26,5 @@ html
 					div.title
 						div.statistics-icon
 						span= StatisticsUser ? 'Statistics for user: ' + StatisticsUser : 'Statistics'
-					div.content
+					div.content
+			div.context-menu.hidden

+ 1 - 1
static/page/class/script.js

@@ -142,7 +142,7 @@ class ClassPage {
 		}
 
 		this.documented = Object.keys(Comments).filter((key) => { return Comments[key].text.length > 0; }).length;
-		this.documentable = 0;
+		this.documentable = 1; // __self__ property is always included
 		this.inheritedCommentsQuery = {};
 		this.inheritedCommentsFields = {};
 		this.propertyItemElements = {};