File tree 10 files changed +67
-26
lines changed
10 files changed +67
-26
lines changed Original file line number Diff line number Diff line change
1
+ git status
2
+ git add .
1
3
npm run lint
2
4
npm run format
3
-
4
5
echo "Done!"
Original file line number Diff line number Diff line change 1
1
/build /*
2
2
! /build /.npmkeep
3
+ assets /
Original file line number Diff line number Diff line change 26
26
}
27
27
},
28
28
"files" : {
29
- "ignore" : [" node_modules" , " android" ]
29
+ "ignore" : [" node_modules" , " build " , " android" ]
30
30
}
31
31
}
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import { CapacitorConfig } from "@capacitor/cli";
4
4
const config : CapacitorConfig = {
5
5
appId : "uwu.cookie.app" ,
6
6
appName : "Cookie" ,
7
- webDir : "www" ,
8
- bundledWebRuntime : false ,
7
+ webDir : "build" ,
9
8
plugins : {
10
9
AdMob : {
11
10
androidAppId : "ca-app-pub-6690516270288705~6535066913" ,
Original file line number Diff line number Diff line change 19
19
"pre-commit" : " cz"
20
20
},
21
21
"hooks" : {
22
- "prepare-commit-msg" : " exec < /dev/tty && npx cz --hook || true"
22
+ "prepare-commit-msg" : " npx --no -- commitlint --edit $1; exec < /dev/tty && npx cz --hook || true"
23
23
},
24
24
"dependencies" : {
25
25
"@capacitor-community/admob" : " ^6.1.0" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "target" : " ESNext" ,
4
+ "outDir" : " build" ,
5
+ "useDefineForClassFields" : true ,
6
+ "module" : " ESNext" ,
7
+ "lib" : [" ESNext" , " DOM" ],
8
+ "moduleResolution" : " Node" ,
9
+ "strict" : true ,
10
+ "resolveJsonModule" : true ,
11
+ "isolatedModules" : true ,
12
+ "esModuleInterop" : true ,
13
+ "noEmit" : true ,
14
+ "noUnusedLocals" : true ,
15
+ "noUnusedParameters" : true ,
16
+ "noImplicitReturns" : true ,
17
+ "skipLibCheck" : true
18
+ }
19
+ }
Original file line number Diff line number Diff line change 9
9
< link rel ="manifest " href ="manifest.json ">
10
10
< link href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css "
rel ="
stylesheet "
integrity ="
sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH "
crossorigin ="
anonymous "
>
11
11
< link rel ="stylesheet " href ="./res/styles/ui.css " type ="text/css " media ="all " />
12
+ < link href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css " rel ="stylesheet ">
12
13
< script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js " integrity ="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g== " crossorigin ="anonymous " referrerpolicy ="no-referrer "> </ script >
13
14
< script src ="https://cdnjs.cloudflare.com/ajax/libs/eruda/3.4.1/eruda.min.js " integrity ="sha512-3RVqOZtMevFOLeXCp0/Wl7np/l3J3MMysaFDUhNh+hdKx+Wb0lMXuHwA6CZ/+4DfYZM01Om1as8g+mnTaQH9vA== " crossorigin ="anonymous " referrerpolicy ="no-referrer "> </ script >
14
- < script type ="module " src ="./res/js /AdMob.js "> </ script >
15
+ < script type ="module " src ="./res/plugins /AdMob.ts "> </ script >
15
16
</ head >
16
17
< body class ="ui-cookie ">
17
18
21
22
</ div >
22
23
</ splash-screen >
23
24
25
+ < div class ="d-flex flex-column justify-content-center align-items-center ">
26
+ < button id ="show_banner " class ="btn btn-custom ">
27
+ < i class ="fas fa-image "> </ i > Mostrar Banner
28
+ </ button >
24
29
30
+ < button id ="hide_banner " class ="btn btn-custom ">
31
+ < i class ="fas fa-eye-slash "> </ i > Esconder Banner
32
+ </ button >
25
33
34
+ < button id ="show_video " class ="btn btn-custom ">
35
+ < i class ="fas fa-video "> </ i > Mostrar Video
36
+ </ button >
26
37
27
- <!---
28
-
29
- <button id="show_banner">
30
- Mostrar Banner
31
- </button>
32
-
33
- <button id="hide_banner">
34
- Esconder Banner
35
- </button>
36
-
37
- <button id="show_video">
38
- Mostrar Video
39
- </button>
40
-
41
- <button id="award">
42
- Mostrar Premio
43
- </button>
44
-
45
- --->
38
+ < button id ="award " class ="btn btn-custom ">
39
+ < i class ="fas fa-trophy "> </ i > Mostrar Premio
40
+ </ button >
41
+ </ div >
46
42
43
+
47
44
< script >
48
45
eruda . init ( ) ;
49
46
</ script >
Original file line number Diff line number Diff line change 1
- const { AdMob } = window . Capacitor . Plugins ;
1
+ import { AdMob } from "@capacitor-community/admob" ;
2
2
3
3
$ ( document ) . ready ( ( ) => {
4
4
// Initialize AdMob plugin
Original file line number Diff line number Diff line change 59
59
opacity : 0.8 ;
60
60
}
61
61
}
62
+
63
+ .btn-custom {
64
+ background-color : transparent;
65
+ color : # 333 ;
66
+ border : 2px solid # 333 ;
67
+ border-radius : 50px ;
68
+ width : 200px ;
69
+ height : 50px ;
70
+ font-size : 16px ;
71
+ display : flex;
72
+ align-items : center;
73
+ justify-content : center;
74
+ margin : 10px ;
75
+ transition : all 0.3s ease;
76
+ }
77
+
78
+ .btn-custom : hover {
79
+ border-color : # 555 ;
80
+ }
81
+
82
+ .btn-custom i {
83
+ margin-right : 10px ;
84
+ }
Original file line number Diff line number Diff line change
1
+ /// <reference types="vite/client" />
You can’t perform that action at this time.
0 commit comments