-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 80bb477
Showing
111 changed files
with
50,481 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
water2.dist.be |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
/> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | ||
|
||
<meta | ||
name="description" | ||
hid="description" | ||
content="언제 어디서든 대항해시대2를 웹으로 즐길 수 있어요!" | ||
/> | ||
<meta property="og:title" content="대항해시대2 - 웹버전" /> | ||
<meta | ||
property="og:description" | ||
content="언제 어디서든 대항해시대2를 웹으로 즐길 수 있어요!" | ||
/> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:locale" content="ko_KR" /> | ||
<meta property="og:site_name" content="대항해시대2 - 웹버전" /> | ||
<meta property="og:url" content="https://water2.dist.be" /> | ||
<meta property="og:image" content="https://water2.dist.be/thumbnail.png" /> | ||
|
||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="128x128" | ||
href="/favicon-128x128.png" | ||
/> | ||
|
||
<title>대항해시대2 - 웹버전</title> | ||
<script | ||
async | ||
src="https://www.googletagmanager.com/gtag/js?id=G-FSY8L0VCE7" | ||
></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { | ||
dataLayer.push(arguments); | ||
} | ||
gtag("js", new Date()); | ||
gtag("config", "G-FSY8L0VCE7"); | ||
</script> | ||
<script type="module" crossorigin src="/assets/index-rnwMUwL3.js"></script> | ||
<link rel="stylesheet" crossorigin href="/assets/index-hkveYPoG.css"> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
42603 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Autogenerated | ||
------------- | ||
|
||
gulpfile.js --> generateBuildInfo | ||
|
||
``` | ||
export const Build = { | ||
version: "6.22.60 (c3627d34f97fcc6e98ceef7fbea6e090)", | ||
jsVersion: "7e48530baf07daa1d82796f9c209647378a1030a", | ||
wasmJsSize: 189751, | ||
wasmVersion: "df90df0fd894cf6ee026bf847969c3ce", | ||
wasmSize: 1808397, | ||
jsSize: 6657376, | ||
buildSeed: 1622012539860, | ||
}; | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
|
||
```import { ICache } from "./js-dos-cache"; | ||
export default class CacheDb implements ICache { | ||
public version: string; | ||
private storeName: string = "files"; | ||
private indexedDB: IDBFactory; | ||
private db: IDBDatabase | null = null; | ||
constructor(version: string, onready: (cache: ICache) => void, onerror: (msg: string) => void) { | ||
this.version = version; | ||
this.indexedDB = window.indexedDB || (window as any).mozIndexedDB | ||
|| (window as any).webkitIndexedDB || (window as any).msIndexedDB; | ||
if (!this.indexedDB) { | ||
onerror("Indexed db is not supported on this host"); | ||
return; | ||
} | ||
const openRequest = this.indexedDB.open("js-dos-cache (" + version + ")", 1); | ||
openRequest.onerror = (event) => { | ||
onerror("Can't open cache database"); | ||
}; | ||
openRequest.onsuccess = (event) => { | ||
this.db = openRequest.result; | ||
onready(this); | ||
}; | ||
openRequest.onupgradeneeded = (event) => { | ||
try { | ||
this.db = openRequest.result; | ||
this.db.onerror = (event) => { | ||
onerror("Can't upgrade cache database"); | ||
}; | ||
this.db.createObjectStore(this.storeName); | ||
} catch (e) { | ||
onerror("Can't upgrade cache database"); | ||
} | ||
}; | ||
} | ||
public put(key: string, data: any, onflush: () => void) { | ||
if (this.db === null) { | ||
onflush(); | ||
return; | ||
} | ||
const transaction = this.db.transaction(this.storeName, "readwrite"); | ||
transaction.oncomplete = () => onflush(); | ||
transaction.objectStore(this.storeName).put(data, key); | ||
} | ||
public get(key: string, ondata: (data: any) => void, onerror: (msg: string) => void) { | ||
if (this.db === null) { | ||
onerror("db is not initalized"); | ||
return; | ||
} | ||
const transaction = this.db.transaction(this.storeName, "readonly"); | ||
const request = transaction.objectStore(this.storeName).get(key); | ||
request.onerror = () => onerror("Can't read value for key '" + key + "'"); | ||
request.onsuccess = () => { | ||
if (request.result) { | ||
ondata(request.result); | ||
} else { | ||
onerror("Result is empty for key '" + key + "', result: " + request.result); | ||
} | ||
}; | ||
} | ||
public forEach(each: (key: string, value: any) => void, onend: () => void) { | ||
if (this.db === null) { | ||
onend(); | ||
return; | ||
} | ||
const transaction = this.db.transaction(this.storeName, "readonly"); | ||
const request = transaction.objectStore(this.storeName).openCursor(); | ||
request.onerror = () => onend(); | ||
request.onsuccess = (event) => { | ||
const cursor = (event.target as any).result as IDBCursorWithValue; | ||
if (cursor) { | ||
each(cursor.key.toString(), cursor.value); | ||
cursor.continue(); | ||
} else { | ||
onend(); | ||
} | ||
}; | ||
} | ||
} | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
```import { ICache } from "./js-dos-cache"; | ||
export default class CacheNoop implements ICache { | ||
public put(key: string, data: any, onflush: () => void) { | ||
``` | ||
|
||
nothing | ||
|
||
``` } | ||
public get(key: string, ondata: (data: any) => void, onerror: (msg: string) => void) { | ||
onerror("Cache is not supported on this host"); | ||
} | ||
public forEach(each: (key: string, value: any) => void, onend: () => void) { | ||
onend(); | ||
} | ||
} | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
```import CacheDb from "./js-dos-cache-db"; | ||
import CacheNoop from "./js-dos-cache-noop"; | ||
import { DosModule } from "./js-dos-module"; | ||
export interface ICache { | ||
put: (key: string, data: any, onflush: () => void) => void; | ||
get: (key: string, ondata: (data: any) => void, onerror: (msg: string) => void) => void; | ||
forEach: (each: (key: string, value: any) => void, onend: () => void) => void; | ||
} | ||
export default function openCache(module: DosModule, onready: (cache: ICache) => void) { | ||
new CacheDb(module.version, onready, (msg: string) => { | ||
if (module.log !== undefined) { | ||
module.log("ERR! Can't initalize cache, cause: " + msg); | ||
} | ||
onready(new CacheNoop()); | ||
}); | ||
} | ||
``` | ||
|
||
|
Oops, something went wrong.