freetube/src/renderer
Emma 6e693c6c37
Implement `getRegionData` in web (#2743)
* Implement `getRegionData` in web

- Adjust __dirname to be a more sensible value
- Add `process.env.GEOLOCATION_NAMES` for web builds to avoid having
to blindly try and fetch

* Reverting webpack changes

* Change `indexOf` to `includes`

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Adding a new helper `createWebURL`

It takes a given path to a resource, and it returns an
 easily fetch-able absolute path

* Using `createWebUrl` inside of the locale fetch

* Using `createWebURL` inside of `getRegionData`

* Removing an unnecessary leftover import

* Wait, no I was mistaken

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2022-10-22 10:31:34 +02:00
..
assets Feature: Screenshot of video (#2221) 2022-05-30 15:24:34 +02:00
components More space for the title in watch-video-info (#2751) 2022-10-20 06:06:04 +00:00
helpers Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
i18n Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
router Feature/channels page (#2129) 2022-07-08 11:40:10 +08:00
sass-partials Add a settings section component to reduce duplicate code (#2609) 2022-09-24 09:12:11 +00:00
store Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
views change `this.showToast` to `showToast` (#2746) 2022-10-19 07:50:09 +00:00
App.css Fix banner width (#2432) 2022-07-31 15:37:22 -04:00
App.js Make copyToClipboard and openExternalLink helpers (#2722) 2022-10-18 08:15:28 +00:00
App.vue Replace jquery on the trending page (#2663) 2022-10-04 17:56:10 +00:00
main.js Implement chapters (#2224) 2022-09-29 20:01:54 +00:00
themes.css Update css-loader and switch to webpack 5's asset modules (#2566) 2022-09-11 20:34:58 -04:00
videoJS.css Hiding two vjs controls when the screen is narrow (#2688) 2022-10-08 22:35:28 +02:00