-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Showing
13 changed files
with
187 additions
and
141 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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace $ { | ||
$.$mol_offline | ||
$mol_offline | ||
} |
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
This file was deleted.
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
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
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
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 |
---|---|---|
@@ -1,20 +1,36 @@ | ||
namespace $ { | ||
$mol_service_worker.init() | ||
|
||
export namespace $mol_service_plugin { | ||
let _ | ||
} | ||
|
||
export class $mol_service_plugin_base extends $mol_object { | ||
static install() { return null as unknown } | ||
static activate() { return null as unknown } | ||
static data(data: {}) { return null as unknown } | ||
|
||
static is<This extends typeof $mol_object>( | ||
this: This, | ||
some: { prototype: unknown } | ||
): some is This { | ||
return some.prototype instanceof this | ||
} | ||
|
||
static install() { } | ||
static activate() { } | ||
static data(data: {}) { return null as null | unknown } | ||
} | ||
|
||
export class $mol_service_plugin_cache extends $mol_service_plugin_base { | ||
static blocked(request: Request) { return false } | ||
static modify(request: Request) { return null as null | Response } | ||
static need_modify(request: Request) { return false } | ||
static modify(request: Request) { return new Response } | ||
@ $mol_action | ||
static request_clone(original: Request, options?: RequestInit) { | ||
return new Request(original, options) | ||
} | ||
} | ||
|
||
export class $mol_service_plugin_notify extends $mol_service_plugin_base { | ||
static notification(e: unknown) { return null as unknown } | ||
static notification(e: unknown) { } | ||
} | ||
|
||
} |
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
Oops, something went wrong.