 4457ae1e6c
			
		
	
	4457ae1e6c
	
	
	
		
			
			* Rename some .js files to .ts
* Add minor fixes for eslint problems
* Add "export {};" line to files without imports and exports to mark
  them as modules
* Updates server.go to handle imports without file extension correctly.
Change-Id: I4d4f1eaa689c6f351e64a2c3cfa4e8ac2d2e1f73
		
	
		
			
				
	
	
		
			125 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			125 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * @license
 | |
|  * Copyright (C) 2017 The Android Open Source Project
 | |
|  *
 | |
|  * Licensed under the Apache License, Version 2.0 (the "License");
 | |
|  * you may not use this file except in compliance with the License.
 | |
|  * You may obtain a copy of the License at
 | |
|  *
 | |
|  * http://www.apache.org/licenses/LICENSE-2.0
 | |
|  *
 | |
|  * Unless required by applicable law or agreed to in writing, software
 | |
|  * distributed under the License is distributed on an "AS IS" BASIS,
 | |
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
|  * See the License for the specific language governing permissions and
 | |
|  * limitations under the License.
 | |
|  */
 | |
| 
 | |
| // Mark the file as a module. Otherwise typescript assumes this is a script
 | |
| // and $_documentContainer is a global variable.
 | |
| // See: https://www.typescriptlang.org/docs/handbook/modules.html
 | |
| export {};
 | |
| 
 | |
| const $_documentContainer = document.createElement('template');
 | |
| 
 | |
| $_documentContainer.innerHTML = `<dom-module id="gr-table-styles">
 | |
|   <template>
 | |
|     <style>
 | |
|       .genericList {
 | |
|         background-color: var(--background-color-primary);
 | |
|         border-collapse: collapse;
 | |
|         width: 100%;
 | |
|       }
 | |
|       .genericList th,
 | |
|       .genericList td {
 | |
|         padding: var(--spacing-m) 0;
 | |
|         vertical-align: middle;
 | |
|       }
 | |
|       .genericList tr {
 | |
|         border-bottom: 1px solid var(--border-color);
 | |
|       }
 | |
|       .genericList tr:hover {
 | |
|         background-color: var(--hover-background-color);
 | |
|       }
 | |
|       .genericList th {
 | |
|         white-space: nowrap;
 | |
|       }
 | |
|       .genericList th,
 | |
|       .genericList td {
 | |
|         padding-right: var(--spacing-l);
 | |
|       }
 | |
|       .genericList tr th:first-of-type,
 | |
|       .genericList tr td:first-of-type {
 | |
|         padding-left: var(--spacing-l);
 | |
|       }
 | |
|       .genericList tr:first-of-type {
 | |
|         border-top: 1px solid var(--border-color);
 | |
|       }
 | |
|       .genericList tr th:last-of-type,
 | |
|       .genericList tr td:last-of-type {
 | |
|         border-left: 1px solid var(--border-color);
 | |
|         text-align: center;
 | |
|         padding-left: var(--spacing-l);
 | |
|       }
 | |
|       .genericList tr th.delete,
 | |
|       .genericList tr td.delete {
 | |
|         padding-top: 0;
 | |
|         padding-bottom: 0;
 | |
|       }
 | |
|       .genericList tr th.delete,
 | |
|       .genericList tr td.delete,
 | |
|       .genericList tr.loadingMsg td,
 | |
|       .genericList tr.groupHeader td {
 | |
|         border-left: none;
 | |
|       }
 | |
|       .genericList .loading {
 | |
|         border: none;
 | |
|         display: none;
 | |
|       }
 | |
|       .genericList td {
 | |
|         flex-shrink: 0;
 | |
|       }
 | |
|       .genericList .topHeader,
 | |
|       .genericList .groupHeader {
 | |
|         color: var(--primary-text-color);
 | |
|         font-weight: var(--font-weight-bold);
 | |
|         text-align: left;
 | |
|         vertical-align: middle
 | |
|       }
 | |
|       .genericList .groupHeader {
 | |
|         background-color: var(--background-color-secondary);
 | |
|         font-family: var(--header-font-family);
 | |
|         font-size: var(--font-size-h3);
 | |
|         font-weight: var(--font-weight-h3);
 | |
|         line-height: var(--line-height-h3);
 | |
|       }
 | |
|       .genericList a {
 | |
|         color: var(--primary-text-color);
 | |
|         text-decoration: none;
 | |
|       }
 | |
|       .genericList a:hover {
 | |
|         text-decoration: underline;
 | |
|       }
 | |
|       .genericList .description {
 | |
|         width: 99%;
 | |
|       }
 | |
|       .genericList .loadingMsg {
 | |
|         color: var(--deemphasized-text-color);
 | |
|         display: block;
 | |
|         padding: var(--spacing-s) var(--spacing-l);
 | |
|       }
 | |
|       .genericList .loadingMsg:not(.loading) {
 | |
|         display: none;
 | |
|       }
 | |
|     </style>
 | |
|   </template>
 | |
| </dom-module>`;
 | |
| 
 | |
| document.head.appendChild($_documentContainer.content);
 | |
| 
 | |
| /*
 | |
|   FIXME(polymer-modulizer): the above comments were extracted
 | |
|   from HTML and may be out of place here. Review them and
 | |
|   then delete this comment!
 | |
| */
 |