-
Notifications
You must be signed in to change notification settings - Fork 561
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
1 parent
c8732a6
commit 72a14ab
Showing
10 changed files
with
659 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"/app.js": "/app.js?id=cb082a14c0f0bb5764c9", | ||
"/app.js": "/app.js?id=8b839cf52d8d2895ec73", | ||
"/app.css": "/app.css?id=7c1ff2a14db6cf79b2c3", | ||
"/app-dark.css": "/app-dark.css?id=3499432c9dbc93b0f541" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<script type="text/ecmascript-6"> | ||
import StylesMixin from './../../mixins/entriesStyles'; | ||
export default { | ||
mixins: [ | ||
StylesMixin, | ||
], | ||
} | ||
</script> | ||
|
||
<template> | ||
<index-screen title="Gates" resource="gates"> | ||
<tr slot="table-header"> | ||
<th scope="col">Ability</th> | ||
<th scope="col">Result</th> | ||
<th scope="col">Happened</th> | ||
<th scope="col"></th> | ||
</tr> | ||
|
||
|
||
<template slot="row" slot-scope="slotProps"> | ||
<td>{{truncate(slotProps.entry.content.ability, 80)}}</td> | ||
|
||
<td class="table-fit"> | ||
<span class="badge font-weight-light" :class="'badge-'+gateResultClass(slotProps.entry.content.result)"> | ||
{{slotProps.entry.content.result}} | ||
</span> | ||
</td> | ||
|
||
<td class="table-fit" :data-timeago="slotProps.entry.created_at">{{timeAgo(slotProps.entry.created_at)}}</td> | ||
|
||
<td class="table-fit"> | ||
<router-link :to="{name:'gate-preview', params:{id: slotProps.entry.id}}" class="control-action"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 16"> | ||
<path d="M16.56 13.66a8 8 0 0 1-11.32 0L.3 8.7a1 1 0 0 1 0-1.42l4.95-4.95a8 8 0 0 1 11.32 0l4.95 4.95a1 1 0 0 1 0 1.42l-4.95 4.95-.01.01zm-9.9-1.42a6 6 0 0 0 8.48 0L19.38 8l-4.24-4.24a6 6 0 0 0-8.48 0L2.4 8l4.25 4.24h.01zM10.9 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"></path> | ||
</svg> | ||
</router-link> | ||
</td> | ||
</template> | ||
</index-screen> | ||
</template> |
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,49 @@ | ||
<script type="text/ecmascript-6"> | ||
import StylesMixin from './../../mixins/entriesStyles'; | ||
export default { | ||
mixins: [ | ||
StylesMixin, | ||
], | ||
data() { | ||
return { | ||
entry: null, | ||
batch: [], | ||
}; | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<preview-screen title="Gate Details" resource="gates" :id="$route.params.id"> | ||
<template slot="table-parameters" slot-scope="slotProps"> | ||
<tr> | ||
<td class="table-fit font-weight-bold">Ability</td> | ||
<td> | ||
{{slotProps.entry.content.ability}} | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="table-fit font-weight-bold">Result</td> | ||
<td> | ||
<span class="badge font-weight-light" :class="'badge-'+gateResultClass(slotProps.entry.content.result)"> | ||
{{slotProps.entry.content.result}} | ||
</span> | ||
</td> | ||
</tr> | ||
</template> | ||
|
||
<div slot="after-attributes-card" slot-scope="slotProps"> | ||
<div class="card mt-5"> | ||
<div class="card-header"><h5>Arguments</h5></div> | ||
|
||
<div class="code-bg p-4 mb-0 text-white"> | ||
<vue-json-pretty :data="slotProps.entry.content.arguments"></vue-json-pretty> | ||
</div> | ||
</div> | ||
</div> | ||
</preview-screen> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Laravel\Telescope\Http\Controllers; | ||
|
||
use Laravel\Telescope\EntryType; | ||
use Laravel\Telescope\Watchers\GateWatcher; | ||
|
||
class GatesController extends EntryController | ||
{ | ||
/** | ||
* The entry type for the controller. | ||
* | ||
* @return string | ||
*/ | ||
protected function entryType() | ||
{ | ||
return EntryType::GATE; | ||
} | ||
|
||
/** | ||
* The watcher class for the controller. | ||
* | ||
* @return string | ||
*/ | ||
protected function watcher() | ||
{ | ||
return GateWatcher::class; | ||
} | ||
} |
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