forked from MapComplete/MapComplete
		
	Fix deployment
This commit is contained in:
		
							parent
							
								
									770c8d1dde
								
							
						
					
					
						commit
						f86ce4bc17
					
				
					 5 changed files with 34 additions and 13 deletions
				
			
		|  | @ -1,3 +1,4 @@ | ||||||
|  | // @ts-ignore
 | ||||||
| import $ from "jquery" | import $ from "jquery" | ||||||
| import {LicenseInfo} from "./Wikimedia"; | import {LicenseInfo} from "./Wikimedia"; | ||||||
| 
 | 
 | ||||||
|  | @ -55,6 +56,7 @@ export class Imgur { | ||||||
|                 Accept: 'application/json', |                 Accept: 'application/json', | ||||||
|             }, |             }, | ||||||
|         }; |         }; | ||||||
|  |         // @ts-ignore
 | ||||||
|         $.ajax(settings).done(function (response) { |         $.ajax(settings).done(function (response) { | ||||||
|             const descr: string = response.data.description ?? ""; |             const descr: string = response.data.description ?? ""; | ||||||
|             const data: any = {}; |             const data: any = {}; | ||||||
|  | @ -108,11 +110,13 @@ export class Imgur { | ||||||
| 
 | 
 | ||||||
|         // Response contains stringified JSON
 |         // Response contains stringified JSON
 | ||||||
|         // Image URL available at response.data.link
 |         // Image URL available at response.data.link
 | ||||||
|  |         // @ts-ignore
 | ||||||
|         $.ajax(settings).done(function (response) { |         $.ajax(settings).done(function (response) { | ||||||
|             response = JSON.parse(response); |             response = JSON.parse(response); | ||||||
|             handleSuccessfullUpload(response.data.link); |             handleSuccessfullUpload(response.data.link); | ||||||
|         }).fail((reason) => { |         }).fail((reason) => { | ||||||
|             console.log("Uploading to IMGUR failed", reason); |             console.log("Uploading to IMGUR failed", reason); | ||||||
|  |             // @ts-ignore
 | ||||||
|             onFail(reason); |             onFail(reason); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -40,6 +40,7 @@ export class SlideShow extends UIElement { | ||||||
|         if(this._embeddedElements.data.length == 0){ |         if(this._embeddedElements.data.length == 0){ | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|  |         // @ts-ignore
 | ||||||
|         $('.slick-carousel').not('.slick-initialized').slick({ |         $('.slick-carousel').not('.slick-initialized').slick({ | ||||||
|             autoplay: true, |             autoplay: true, | ||||||
|             arrows: true, |             arrows: true, | ||||||
|  |  | ||||||
							
								
								
									
										38
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										38
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							|  | @ -11093,23 +11093,23 @@ | ||||||
|       "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" |       "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" | ||||||
|     }, |     }, | ||||||
|     "tailwindcss": { |     "tailwindcss": { | ||||||
|       "version": "npm:@tailwindcss/postcss7-compat@2.0.2", |       "version": "npm:@tailwindcss/postcss7-compat@2.0.3", | ||||||
|       "resolved": "https://registry.npmjs.org/@tailwindcss/postcss7-compat/-/postcss7-compat-2.0.2.tgz", |       "resolved": "https://registry.npmjs.org/@tailwindcss/postcss7-compat/-/postcss7-compat-2.0.3.tgz", | ||||||
|       "integrity": "sha512-KM8kjG5dd8qoXBX2a6r3r1TOqhFh8NtFBheG9qpVPwSjrD8wRdoM7s+Xz56HEA1XmeN64gEKqjmY6vm55DiS3Q==", |       "integrity": "sha512-R43aiSzwlybDMhDld8vkSIKPSLXxbbmotZ+I2GIrX+IzFNy9JAByC7Ncf9A81Dg0JLBWHY5m769lBbBnJCF8cw==", | ||||||
|       "requires": { |       "requires": { | ||||||
|         "@fullhuman/postcss-purgecss": "^3.0.0", |         "@fullhuman/postcss-purgecss": "^3.1.3", | ||||||
|         "autoprefixer": "^9", |         "autoprefixer": "^9", | ||||||
|         "bytes": "^3.0.0", |         "bytes": "^3.0.0", | ||||||
|         "chalk": "^4.1.0", |         "chalk": "^4.1.0", | ||||||
|         "color": "^3.1.3", |         "color": "^3.1.3", | ||||||
|         "detective": "^5.2.0", |         "detective": "^5.2.0", | ||||||
|         "didyoumean": "^1.2.1", |         "didyoumean": "^1.2.1", | ||||||
|         "fs-extra": "^9.0.1", |         "fs-extra": "^9.1.0", | ||||||
|         "html-tags": "^3.1.0", |         "html-tags": "^3.1.0", | ||||||
|         "lodash": "^4.17.20", |         "lodash": "^4.17.20", | ||||||
|         "modern-normalize": "^1.0.0", |         "modern-normalize": "^1.0.0", | ||||||
|         "node-emoji": "^1.8.1", |         "node-emoji": "^1.8.1", | ||||||
|         "object-hash": "^2.0.3", |         "object-hash": "^2.1.1", | ||||||
|         "postcss": "^7", |         "postcss": "^7", | ||||||
|         "postcss-functions": "^3", |         "postcss-functions": "^3", | ||||||
|         "postcss-js": "^2", |         "postcss-js": "^2", | ||||||
|  | @ -11117,7 +11117,7 @@ | ||||||
|         "postcss-selector-parser": "^6.0.4", |         "postcss-selector-parser": "^6.0.4", | ||||||
|         "postcss-value-parser": "^4.1.0", |         "postcss-value-parser": "^4.1.0", | ||||||
|         "pretty-hrtime": "^1.0.3", |         "pretty-hrtime": "^1.0.3", | ||||||
|         "reduce-css-calc": "^2.1.6", |         "reduce-css-calc": "^2.1.8", | ||||||
|         "resolve": "^1.19.0" |         "resolve": "^1.19.0" | ||||||
|       }, |       }, | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|  | @ -11184,6 +11184,17 @@ | ||||||
|             "simple-swizzle": "^0.2.2" |             "simple-swizzle": "^0.2.2" | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|  |         "fs-extra": { | ||||||
|  |           "version": "9.1.0", | ||||||
|  |           "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", | ||||||
|  |           "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", | ||||||
|  |           "requires": { | ||||||
|  |             "at-least-node": "^1.0.0", | ||||||
|  |             "graceful-fs": "^4.2.0", | ||||||
|  |             "jsonfile": "^6.0.1", | ||||||
|  |             "universalify": "^2.0.0" | ||||||
|  |           } | ||||||
|  |         }, | ||||||
|         "has-flag": { |         "has-flag": { | ||||||
|           "version": "4.0.0", |           "version": "4.0.0", | ||||||
|           "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", |           "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", | ||||||
|  | @ -11216,11 +11227,11 @@ | ||||||
|           "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==" |           "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==" | ||||||
|         }, |         }, | ||||||
|         "resolve": { |         "resolve": { | ||||||
|           "version": "1.19.0", |           "version": "1.20.0", | ||||||
|           "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", |           "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", | ||||||
|           "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", |           "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", | ||||||
|           "requires": { |           "requires": { | ||||||
|             "is-core-module": "^2.1.0", |             "is-core-module": "^2.2.0", | ||||||
|             "path-parse": "^1.0.6" |             "path-parse": "^1.0.6" | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|  | @ -11231,6 +11242,11 @@ | ||||||
|           "requires": { |           "requires": { | ||||||
|             "has-flag": "^4.0.0" |             "has-flag": "^4.0.0" | ||||||
|           } |           } | ||||||
|  |         }, | ||||||
|  |         "universalify": { | ||||||
|  |           "version": "2.0.0", | ||||||
|  |           "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", | ||||||
|  |           "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|  | @ -7,7 +7,6 @@ import LayoutConfig from "../Customizations/JSON/LayoutConfig"; | ||||||
| import {AllKnownLayouts} from "../Customizations/AllKnownLayouts"; | import {AllKnownLayouts} from "../Customizations/AllKnownLayouts"; | ||||||
| import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs"; | import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs"; | ||||||
| import Locale from "../UI/i18n/Locale"; | import Locale from "../UI/i18n/Locale"; | ||||||
| import * as sharp from "sharp" |  | ||||||
| import Translations from "../UI/i18n/Translations"; | import Translations from "../UI/i18n/Translations"; | ||||||
| import {Translation} from "../UI/i18n/Translation"; | import {Translation} from "../UI/i18n/Translation"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,11 +4,12 @@ | ||||||
|     "target": "es5", |     "target": "es5", | ||||||
|     "sourceMap": true, |     "sourceMap": true, | ||||||
|     "resolveJsonModule": true, |     "resolveJsonModule": true, | ||||||
|  |     "esModuleInterop": true, | ||||||
|     "lib": [ |     "lib": [ | ||||||
|       "DOM", |       "DOM", | ||||||
|       "es5", |       "es5", | ||||||
|       "scripthost", |       "scripthost", | ||||||
|       "es2015.collection" |       "es2015.collection", | ||||||
|     ] |     ] | ||||||
|   }, |   }, | ||||||
|   "exclude": [ |   "exclude": [ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue