Skip to content

Commit

Permalink
Update documentation viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Jul 5, 2018
1 parent 5603b1e commit 351aa80
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 14 deletions.
Binary file modified src/assets/docs-viewer/icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-167x167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-196x196.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/docs-viewer/icon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 20 additions & 14 deletions src/assets/docs-viewer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -974,14 +974,14 @@ const $Url = new(class {
this._a.href = url

return {
hostname: this._a.hostname,
protocol: this._a.protocol,
origin: this._a.origin,
path: this._a.pathname,
search: this._a.search,
hash: this._a.hash,
host: this._a.host,
port: this._a.port
hostname: this._a.hostname || "",
protocol: this._a.protocol || "",
origin: this._a.origin || "",
path: this._a.pathname || "",
search: this._a.search || "",
hash: this._a.hash || "",
host: this._a.host || "",
port: this._a.port || ""
}
})()
}
Expand Down Expand Up @@ -1051,8 +1051,8 @@ const $String = new(class {
return string.replace(/\b[a-z]/g, char => char.toUpperCase())
}

repeat(count, string) {
return string.repeat(count)
repeat(times, string) {
return string.repeat(times)
}

join(separator, array) {
Expand Down Expand Up @@ -1564,14 +1564,14 @@ const $Storage_Common = new(class {
})

const $Result = new(class {
error(input) {
return new Err(input)
}

ok(input) {
return new Ok(input)
}

error(input) {
return new Err(input)
}

withDefault(value, input) {
return input instanceof Ok ? input.value : value
}
Expand Down Expand Up @@ -2466,6 +2466,8 @@ const $Application = new (class extends Store {
await new Promise((_resolve) => {
this.setState(_update(this.state, { documentation: $Documentation.empty(), selected: $Content.empty(), page: $Page_Dashboard }), _resolve)
})

await $Window.setScrollTop(0)
}
catch(_error) {
if (_error instanceof DoError) {
Expand Down Expand Up @@ -2513,6 +2515,8 @@ const $Application = new (class extends Store {
await new Promise((_resolve) => {
this.setState(_update(this.state, { documentation: documentation, page: $Page_Package }), _resolve)
})

await $Window.setScrollTop(0)
}
catch(_error) {
if (_error instanceof DoError) {
Expand Down Expand Up @@ -2623,6 +2627,8 @@ const $Application = new (class extends Store {
await new Promise((_resolve) => {
this.setState(_update(this.state, { documentation: documentation, page: $Page_Entity, selected: selected, tab: tab }), _resolve)
})

await $Window.setScrollTop(0)
}
catch(_error) {
if (_error instanceof DoError) {
Expand Down

0 comments on commit 351aa80

Please sign in to comment.