diff --git a/README.md b/README.md index 3ce17d8..d3bfd51 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ - - + +
@@ -235,3 +235,21 @@ About [ CI/CD File.yml](https://raw.githubusercontent.com/AlbericoD/overwolf-mod ![label](./doc/ci-2.png) ![label](./doc/ci-3.png) + +## 🤝 Contributing + +Contributions, issues and feature requests are welcome! + +## Projects using OMRB + +> If you are using OMRB in your project, please let me know! I'll be happy to list it here. + +- [Fortmapp](https://www.overwolf.com/app/Alberico_Dias_Barreto_Filho-Fortmapp) + + > A map for Fortnite Battle Royale. + > ![ForFortmapptm preview](./doc/projects/fortmapp.png) + +- [Economy Tool](https://www.overwolf.com/app/Alberico_Dias_Barreto_Filho-Economy_Tool) + + > A tool to help you manage economy in the cs2. + > ![Economy Tool preview](./doc/projects/economy-tool.png) diff --git a/doc/desktop-1.png b/doc/desktop-1.png index 6311018..c25a3ae 100644 Binary files a/doc/desktop-1.png and b/doc/desktop-1.png differ diff --git a/doc/projects/economy-tool.png b/doc/projects/economy-tool.png new file mode 100644 index 0000000..7794295 Binary files /dev/null and b/doc/projects/economy-tool.png differ diff --git a/doc/projects/fortmapp.png b/doc/projects/fortmapp.png new file mode 100644 index 0000000..44d7768 Binary files /dev/null and b/doc/projects/fortmapp.png differ diff --git a/template/README.md b/template/README.md index 3ce17d8..d3bfd51 100644 --- a/template/README.md +++ b/template/README.md @@ -9,8 +9,8 @@ - - + + @@ -235,3 +235,21 @@ About [ CI/CD File.yml](https://raw.githubusercontent.com/AlbericoD/overwolf-mod ![label](./doc/ci-2.png) ![label](./doc/ci-3.png) + +## 🤝 Contributing + +Contributions, issues and feature requests are welcome! + +## Projects using OMRB + +> If you are using OMRB in your project, please let me know! I'll be happy to list it here. + +- [Fortmapp](https://www.overwolf.com/app/Alberico_Dias_Barreto_Filho-Fortmapp) + + > A map for Fortnite Battle Royale. + > ![ForFortmapptm preview](./doc/projects/fortmapp.png) + +- [Economy Tool](https://www.overwolf.com/app/Alberico_Dias_Barreto_Filho-Economy_Tool) + + > A tool to help you manage economy in the cs2. + > ![Economy Tool preview](./doc/projects/economy-tool.png) diff --git a/template/doc/ci-1.png b/template/doc/ci-1.png new file mode 100644 index 0000000..50afd86 Binary files /dev/null and b/template/doc/ci-1.png differ diff --git a/template/doc/ci-2.png b/template/doc/ci-2.png new file mode 100644 index 0000000..4463694 Binary files /dev/null and b/template/doc/ci-2.png differ diff --git a/template/doc/ci-3.png b/template/doc/ci-3.png new file mode 100644 index 0000000..b4b05a2 Binary files /dev/null and b/template/doc/ci-3.png differ diff --git a/template/doc/desktop-1.png b/template/doc/desktop-1.png new file mode 100644 index 0000000..c25a3ae Binary files /dev/null and b/template/doc/desktop-1.png differ diff --git a/template/doc/ingame-1.png b/template/doc/ingame-1.png new file mode 100644 index 0000000..8f05aaf Binary files /dev/null and b/template/doc/ingame-1.png differ diff --git a/template/doc/ingame-2.png b/template/doc/ingame-2.png new file mode 100644 index 0000000..b3128e7 Binary files /dev/null and b/template/doc/ingame-2.png differ diff --git a/template/doc/projects/economy-tool.png b/template/doc/projects/economy-tool.png new file mode 100644 index 0000000..7794295 Binary files /dev/null and b/template/doc/projects/economy-tool.png differ diff --git a/template/doc/projects/fortmapp.png b/template/doc/projects/fortmapp.png new file mode 100644 index 0000000..44d7768 Binary files /dev/null and b/template/doc/projects/fortmapp.png differ diff --git a/template/public/manifest.json b/template/public/manifest.json index 074c9be..2805094 100644 --- a/template/public/manifest.json +++ b/template/public/manifest.json @@ -3,7 +3,7 @@ "type": "WebApp", "meta": { "name": "Overwolf Modern React Boilerplate-v4", - "version": "4.0.0", + "version": "0.1.0", "minimum-overwolf-version": "0.120.0", "author": "Albérico Dias Barreto Filho", "icon": "IconMouseOver.png", @@ -12,30 +12,22 @@ "window_icon": "TaskbarIcon.png", "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry." }, - "permissions": [ - "GameInfo" - ], + "permissions": ["Extensions", "Streaming", "Profile", "GameInfo"], "data": { "game_targeting": { "type": "dedicated", - "game_ids": [ - 9898 - ] + "game_ids": [9898] }, "launch_events": [ { "event": "GameLaunch", "event_data": { - "game_ids": [ - 9898 - ] + "game_ids": [9898] }, "start_minimized": true } ], - "game_events": [ - 9898 - ], + "game_events": [9898], "start_window": "background", "windows": { "background": { @@ -60,7 +52,10 @@ "width": 1920, "height": 1080 }, - "desktop_only": true + "desktop_only": true, + "block_top_window_navigation": true, + "popup_blocker": true, + "mute": true }, "in_game": { "file": "Files/index.html", @@ -87,9 +82,6 @@ } } }, - "block_top_window_navigation": true, - "popup_blocker": true, - "mute": true, "force_browser": "user", "developer": { "enable_auto_refresh": true, @@ -97,4 +89,4 @@ "filter": "*.*" } } -} \ No newline at end of file +} diff --git a/template/src/app/components/App.tsx b/template/src/app/components/App.tsx index c935270..af35da7 100644 --- a/template/src/app/components/App.tsx +++ b/template/src/app/components/App.tsx @@ -18,7 +18,7 @@ export const App = () => { log( `Request screen: ${currentWindow}`, "src/app/components/App.tsx", - "useEffect" + "useEffect", ); })(); }, []); diff --git a/template/src/app/shared/store.ts b/template/src/app/shared/store.ts index 856bbe0..5ada278 100644 --- a/template/src/app/shared/store.ts +++ b/template/src/app/shared/store.ts @@ -7,9 +7,7 @@ const reduxStore = configureStore({ reducer, devTools: false, enhancers: (getDefaultEnchancers) => - getDefaultEnchancers().concat( - devToolsEnhancer({ port: 8081 }) - ), + getDefaultEnchancers().concat(devToolsEnhancer({ port: 8081 })), }); declare global { diff --git a/template/src/components/Feed/index.ts b/template/src/components/Feed/index.ts index f1fc742..75b8a9a 100644 --- a/template/src/components/Feed/index.ts +++ b/template/src/components/Feed/index.ts @@ -1 +1 @@ -export * from './Feed' +export * from "./Feed"; diff --git a/template/src/components/Loading/Loading.tsx b/template/src/components/Loading/Loading.tsx index 037a805..fed55a1 100644 --- a/template/src/components/Loading/Loading.tsx +++ b/template/src/components/Loading/Loading.tsx @@ -1 +1 @@ -export const Loading = () =>Loading ...
+export const Loading = () =>Loading ...
; diff --git a/template/src/components/Loading/index.ts b/template/src/components/Loading/index.ts index 8e9305d..618e384 100644 --- a/template/src/components/Loading/index.ts +++ b/template/src/components/Loading/index.ts @@ -1 +1 @@ -export * from './Loading' +export * from "./Loading"; diff --git a/template/src/components/Title/index.ts b/template/src/components/Title/index.ts index 9a3bed4..2a7f3c5 100644 --- a/template/src/components/Title/index.ts +++ b/template/src/components/Title/index.ts @@ -1 +1 @@ -export * from './Title' +export * from "./Title"; diff --git a/template/src/features/monetization/components/AdsSlot.tsx b/template/src/features/monetization/components/AdsSlot.tsx new file mode 100644 index 0000000..29a78fc --- /dev/null +++ b/template/src/features/monetization/components/AdsSlot.tsx @@ -0,0 +1,43 @@ +import { useOverwolfAds, type UseOverwolfAds } from "../hooks/useOverwolfAds"; +import "./styles/AdsSlot.css"; + +/** + * Renders an ads slot component. + * @see https://overwolf.github.io/start/monetize-your-app/advertising/working-with-ads#list-of-ad-sizes + * A simple, one Container layout + * Dimensions: 400x300 + * Revenue: Baseline + * Show Video Ads: Yes + * Design Constraints: Minimal + * User Friction: Minimal + * Policies: + * As such, you must also keep in mind the following: + * Do not create Ad experiences that are actively intrusive/clash with the app's basic usage. + * No more than one video Ad container may be placed on a single page at any moment. + * Any manipulation of or interference with the ads integration is not allowed - Bots, auto clickers, constant page reloading, faking impressions, etc. + * Ads may not be placed on dead end/empty screens. This includes: "Thank You" pages, "Login" pages, "Dialogue/Error/Notification", pages Etc + * @test How to test: https://overwolf.github.io/start/test-your-app/how-to-test-your-app#testing-ad-visibility + * @returns The rendered ads slot component. + */ +export function AdsSlot(size: UseOverwolfAds) { + const { containerRef, isPlaying } = useOverwolfAds(size); + return ( +