Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 09ba5b21

Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)

reworked Constants class to ES6 class with static attributes

Zobrazit rozdíly:

sources/src/main/webapp/js/constants.js
1 1
/**
2 2
 * Class containing application constants.
3
 * @constructor
4 3
 */
5
function Constants() {
6
	/** @prop {string} notFoundVertexName Name of the vertex that groups all components that were not found while constructing graph. */
7
	this.notFoundVertexName = 'NOT_FOUND';
4
class Constants {
8 5
}
6

  
7
/** @static @prop {string} notFoundVertexName Name of the vertex that groups all components that were not found while constructing graph. */
8
Constants.notFoundVertexName = 'NOT_FOUND';
9

  
10
/** @static @prop {object} API Map of application programming interface paths. */
11
Constants.API = {
12
	logIn: 'api/log-in',
13
	register: 'api/register',
14
	loadGraphData: 'api/load-graph-data',
15
	getDiagram: 'api/get-diagram',
16
	saveDiagram: 'api/save-diagram',
17
	removeDiagram: 'api/remove-diagram',
18
	getPrivateDiagrams: 'api/get-private-diagrams',
19
};

Také k dispozici: Unified diff