File tree Expand file tree Collapse file tree 5 files changed +55
-29
lines changed Expand file tree Collapse file tree 5 files changed +55
-29
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
- pull_request :
4
- paths-ignore : ['dist/**', '*.md']
5
- push :
6
- branches : [1.x, 2.x]
7
- paths-ignore : ['dist/**', '*.md']
3
+ pull_request :
4
+ paths-ignore : ['dist/**', '*.md']
5
+ push :
6
+ branches : [1.x, 2.x]
7
+ paths-ignore : ['dist/**', '*.md']
8
8
jobs :
9
- test :
10
- name : Tests
11
- runs-on : ubuntu-latest
12
- steps :
13
- - uses : actions/checkout@v2
14
- - uses : shivammathur/setup-php@v2
15
- with :
16
- php-version : 8.0
17
- - run : composer config http-basic.nova.laravel.com $NOVA_USERNAME $NOVA_PASSWORD
18
- env :
19
- NOVA_USERNAME : ${{ secrets.NOVA_USERNAME }}
20
- NOVA_PASSWORD : ${{ secrets.NOVA_PASSWORD }}
21
- - uses : ramsey/composer-install@v2
22
- - run : vendor/bin/phpunit --testdox --colors=always
9
+ test :
10
+ name : Tests
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : shivammathur/setup-php@v2
15
+ with :
16
+ php-version : 8.0
17
+ - run : composer config http-basic.nova.laravel.com $NOVA_USERNAME $NOVA_PASSWORD
18
+ env :
19
+ NOVA_USERNAME : ${{ secrets.NOVA_USERNAME }}
20
+ NOVA_PASSWORD : ${{ secrets.NOVA_PASSWORD }}
21
+ - run : composer require laravel/nova:4.22.2 --no-update
22
+ - uses : ramsey/composer-install@v2
23
+ - run : vendor/bin/phpunit --testdox --colors=always
Original file line number Diff line number Diff line change 6
6
"prod" : " mix --production"
7
7
},
8
8
"devDependencies" : {
9
- "@vue/compiler-sfc" : " ^3.2.22 " ,
10
- "autoprefixer" : " ^10.4.14 " ,
11
- "codemirror" : " ^5.65.2 " ,
12
- "laravel-mix" : " ^6.0.41 " ,
9
+ "@vue/compiler-sfc" : " ^3.4.19 " ,
10
+ "autoprefixer" : " ^10.4.17 " ,
11
+ "codemirror" : " ^5.65.16 " ,
12
+ "laravel-mix" : " ^6.0.49 " ,
13
13
"lodash" : " ^4.17.21" ,
14
- "postcss" : " ^8.4.27 " ,
15
- "prettier" : " ^2.6.2 " ,
16
- "tailwindcss" : " ^3.3.3 " ,
17
- "vue" : " ^3.2.33 " ,
18
- "vue-loader" : " ^17.0.0 "
14
+ "postcss" : " ^8.4.35 " ,
15
+ "prettier" : " ^3.2.5 " ,
16
+ "tailwindcss" : " ^3.4.1 " ,
17
+ "vue" : " ^3.4.19 " ,
18
+ "vue-loader" : " ^17.4.2 "
19
19
},
20
20
"prettier" : {
21
21
"printWidth" : 140 ,
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <Component size =" lg" align =" center" v-bind =" $attrs" is =" DefaultButton" ref =" button" >
3
+ <span :class =" { invisible: processing }" >
4
+ <slot />
5
+ </span >
6
+ <span v-if =" processing" class =" absolute" style =" top : 50% ; left : 50% ; transform : translate (-50% , -50% )" >
7
+ <Loader class =" text-white" width =" 32" />
8
+ </span >
9
+ </Component >
10
+ </template >
11
+
12
+ <script >
13
+ export default {
14
+ props: {
15
+ processing: Boolean ,
16
+ },
17
+ methods: {
18
+ focus () {
19
+ this .$refs .button .focus ();
20
+ },
21
+ },
22
+ };
23
+ </script >
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import SelectSetting from './SelectSetting.vue';
30
30
import TextSetting from ' ./TextSetting.vue' ;
31
31
import TextareaSetting from ' ./TextareaSetting.vue' ;
32
32
import ToggleSetting from ' ./ToggleSetting.vue' ;
33
+ import LoadingButton from ' ./LoadingButton.vue' ;
33
34
34
35
export default {
35
36
components: {
@@ -39,6 +40,7 @@ export default {
39
40
TextSetting,
40
41
TextareaSetting,
41
42
ToggleSetting,
43
+ LoadingButton,
42
44
},
43
45
data : () => ({
44
46
saving: false ,
You can’t perform that action at this time.
0 commit comments