Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 879c1752

Přidáno uživatelem Pavel Fidranský před asi 6 roky(ů)

minor improvements

Zobrazit rozdíly:

sources/imiger-core/src/main/webapp/css/components/sidebar.css
4 4
	flex-direction: column;
5 5
	justify-content: space-between;
6 6
	background-color: #f0f9ff;
7
	box-shadow: 0 0 5px #7db9e8;
7 8
}
8 9

  
9 10
.sidebar .button {
......
20 21

  
21 22
.sidebar .node-container {
22 23
	position: relative;
24
	min-height: 140px; /* just enough to display one node */
23 25
	overflow-y: overlay;
24 26
}
25 27

  
sources/imiger-core/src/main/webapp/js/components/groupVertexList.js
37 37

  
38 38
		if (this.isRendered) {
39 39
			this._rootElement.childNodes.forEach(child => {
40
				if (child.getAttribute('data-id') === vertex.id) {
40
				if (child.dataset.id === vertex.id) {
41 41
					child.remove();
42 42
				}
43 43
			});
sources/imiger-core/src/main/webapp/js/components/navbar.js
93 93
	}
94 94

  
95 95
	_createSearchListItem() {
96
		let searchInput = DOM.h('input', {
96
		const searchInput = DOM.h('input', {
97 97
			type: 'search',
98
			placeholder: 'Search components...',
98
			placeholder: 'Search nodes...',
99 99
			class: 'search-text',
100 100
			id: 'searchText',
101 101
			title: 'search nodes [ctrl + f]',
......
112 112
			},
113 113
		});
114 114

  
115
		let searchButton = DOM.h('button', {
115
		const searchButton = DOM.h('button', {
116 116
			class: 'btn search',
117 117
			id: 'searchButton',
118 118
			onClick: () => {
......
126 126
			}),
127 127
		]);
128 128

  
129
		let searchCounter = DOM.h('span', {
129
		const searchCounter = DOM.h('span', {
130 130
			class: 'search-count',
131 131
			id: 'searchCount',
132 132
			title: 'Count of components found',
......
181 181

  
182 182
		function resetSearch() {
183 183
			let nodeList = app.nodeList;
184
			nodeList.forEach(node => {
185
				node.isFound = false;
186
			});
184
			nodeList.filter(node => node.isFound === true).forEach(node => node.isFound = false);
187 185

  
188 186
			searchInput.value = '';
189 187
			searchCounter.innerText = 0;
sources/imiger-core/src/main/webapp/js/components/saveDiagramModalWindow.js
58 58
					]),
59 59
				]),
60 60
			]),
61
		])
61
		]);
62 62
		this._bodyElement.appendChild(this._form);
63 63

  
64 64
		return this._rootElement;
sources/imiger-core/src/main/webapp/js/components/viewport.js
170 170

  
171 171
		// reusable definitions
172 172
		this._definitions = DOM.s('defs', {}, [
173
			// linear gradient
173
			// linear gradient for nodes that are highlighted as both required and provided
174 174
			DOM.s('linearGradient', {
175 175
				id: 'node--highlighted-as-required-provided',
176 176
			}, [
sources/imiger-core/src/main/webapp/js/uploadFilesApp.js
151 151
	 * Removes diagram from DB and reloads the page.
152 152
	 */
153 153
	async _removeDiagram() {
154
		let diagramId = this.getAttribute('data-id');
155
		let diagramName = this.getAttribute('data-name');
154
		let diagramId = this.dataset.id;
155
		let diagramName = this.dataset.name;
156 156

  
157 157
		if (confirm('Do you really want to delete ' + diagramName + '?')) {
158 158
			try {

Také k dispozici: Unified diff