-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to automatically update assets, fixes
displayUsing
and…
… reduce `lodash` dist (#164) * Add workflow to automatically update assets. Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update Assets * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update Assets * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: crynobone <[email protected]>
- Loading branch information
Showing
10 changed files
with
71 additions
and
24 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: run-tests | ||
name: "Run Tests" | ||
|
||
on: [push, pull_request] | ||
|
||
|
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,30 @@ | ||
name: "Update Assets" | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
update: | ||
name: Update assets | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
|
||
- name: Compile Asset | ||
run: | | ||
yarn install | ||
yarn run production | ||
env: | ||
TAILWIND_MODE: build | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Update Assets |
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,6 +1,7 @@ | ||
/build | ||
/vendor | ||
/node_modules | ||
auth.json | ||
package-lock.json | ||
composer.phar | ||
composer.lock | ||
|
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
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
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,13 +1,25 @@ | ||
<template> | ||
<PanelItem :index="index" :field="field"> | ||
<template #value> | ||
<p v-html="typeof field.value === 'object' ? field.value.join(', ') : field.value"></p> | ||
<p v-html="tagFieldValue"></p> | ||
</template> | ||
</PanelItem> | ||
</template> | ||
|
||
<script> | ||
import { FieldValue } from 'laravel-nova'; | ||
export default { | ||
mixins: [FieldValue], | ||
props: ['index', 'resource', 'resourceName', 'resourceId', 'field'], | ||
computed: { | ||
tagFieldValue() { | ||
let fieldValue = this.fieldValue | ||
return typeof fieldValue === 'object' ? fieldValue.join(', ') : fieldValue | ||
}, | ||
}, | ||
}; | ||
</script> |
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,12 +1,24 @@ | ||
<template> | ||
<div | ||
class="py-3 tags-index-field" | ||
v-html="typeof field.value === 'object' ? field.value.join(', ') : field.value" | ||
v-html="tagFieldValue" | ||
></div> | ||
</template> | ||
|
||
<script> | ||
import { FieldValue } from 'laravel-nova'; | ||
export default { | ||
mixins: [FieldValue], | ||
props: ['resourceName', 'field'], | ||
computed: { | ||
tagFieldValue() { | ||
let fieldValue = this.fieldValue | ||
return typeof fieldValue === 'object' ? fieldValue.join(', ') : fieldValue | ||
}, | ||
}, | ||
}; | ||
</script> |
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