file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
VideoTool/src/test/java/com/yc/videotool/ExampleUnitTest.java
Java
package com.yc.videotool; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addit...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/build.gradle
Gradle
apply plugin: 'com.android.library' apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle" android { compileSdkVersion project.ext.androidCompileSdkVersion buildToolsVersion project.ext.androidBuildToolsVersion defaultConfig { minSdkVersion project.ext.androidMinSdkVersion ...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/FloatLifecycle.java
Java
package com.yc.videoview; import android.app.Activity; import android.app.Application; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Build; import android.os.Bundle; import android.os.Handler; import andr...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/FloatPhone.java
Java
package com.yc.videoview; import android.content.Context; import android.graphics.PixelFormat; import android.os.Build; import android.view.View; import android.view.WindowManager; /** * 7.1及以上需申请权限 */ public class FloatPhone extends FloatView { private final Context mContext; private final WindowManager ...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/FloatToast.java
Java
package com.yc.videoview; import android.content.Context; import android.view.View; import android.view.WindowManager; import android.widget.Toast; import java.lang.reflect.Field; import java.lang.reflect.Method; /** * 自定义 toast 方式,无需申请权限 */ public class FloatToast extends FloatView { private Toast toast; ...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/FloatView.java
Java
package com.yc.videoview; import android.view.View; public abstract class FloatView { abstract void setSize(int width, int height); abstract void setView(View view); abstract void setGravity(int gravity, int xOffset, int yOffset); abstract void init(); abstract void dismiss(); void upda...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/FloatWindow.java
Java
package com.yc.videoview; import android.animation.TimeInterpolator; import android.content.Context; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.LayoutRes; import androidx.annotation.MainThread; import androidx.an...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/IFloatWindow.java
Java
package com.yc.videoview; import android.view.View; public abstract class IFloatWindow { public abstract void show(); public abstract void hide(); public abstract int getX(); public abstract int getY(); public abstract void updateX(int x); public abstract void updateX(@WindowScreen.scre...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/IFloatWindowImpl.java
Java
package com.yc.videoview; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; import android.os.Build; import andro...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/LifecycleListener.java
Java
package com.yc.videoview; interface LifecycleListener { void onShow(); void onHide(); void onPostHide(); }
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/MoveType.java
Java
package com.yc.videoview; import androidx.annotation.IntDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class MoveType { public static final int fixed = 0; public static final int free = 1; public static final int active = 2; public static final int s...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/PermissionActivity.java
Java
package com.yc.videoview; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import java.util.ArrayList; import java.util.List; /** * <pre...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/SmallWindowTouch.java
Java
package com.yc.videoview; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.widget.FrameLayout; /** * <pre> * @author yangchong * blog : https://github.com/yangchong211 * time : 2018/8/29 * desc : 小窗口触摸移动 * revise: * </pre> */ public cla...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/WindowScreen.java
Java
package com.yc.videoview; import androidx.annotation.IntDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class WindowScreen { public static final int WIDTH = 0; public static final int HEIGHT = 1; @IntDef({WIDTH, HEIGHT}) @Retention(RetentionPolicy.SO...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
VideoView/src/main/java/com/yc/videoview/WindowUtil.java
Java
package com.yc.videoview; import android.content.Context; import android.graphics.Point; import android.os.Build; import android.provider.Settings; import android.view.WindowManager; import androidx.annotation.RequiresApi; public final class WindowUtil { @RequiresApi(api = Build.VERSION_CODES.M) public st...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
build.gradle
Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } maven { url 'https://jitpack.io' } } ...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
settings.gradle
Gradle
//视频弹幕 include ':VideoBarrage' //视频录频 include ':VideoRecorder' //视频投屏 include ':VideoScreen' //视频播放位置记录二级缓存 include ':VideoSqlLite' //m3u8下载和合成 include ':VideoM3u8' //音频 include ':MusicPlayer' //视频悬浮 include ':VideoView' //视频内核 include ':VideoKernel' //视频边播边缓存 include ':VideoCache' //视频播放器 include ':VideoPlayer' inclu...
yangchong211/YCVideoPlayer
2,245
🔥🔥🔥 基础封装视频播放器player,可以在ExoPlayer、MediaPlayer原生MediaPlayer可以自由切换内核;该播放器整体架构:播放器内核(自由切换) + 视频播放器 + 边播边缓存 + 高度定制播放器UI视图层。支持视频简单播放,列表播放,仿抖音滑动播放,自动切换播放,使用案例丰富,拓展性强。
Java
yangchong211
杨充
Tencent
httpserver/main.go
Go
package main import ( "encoding/json" "fmt" "github.com/gin-gonic/gin" "github.com/pingcap/tiflow/cdc/model" "log" "net/http" ) // AddTableReq add table request type AddTableReq struct { TableID int64 `json:"table_id"` } // RemoveTableReq remove table request type RemoveTableReq struct { TableID int64 `json:...
yangwenmai/hackathon2022-plugin-server
1
PingCAP Hackathon 2022 plugin server(include http and rpc)
Go
yangwenmai
maiyang
rpcserver/main.go
Go
package main import ( "encoding/json" "fmt" "github.com/pingcap/tiflow/cdc/model" "log" "net" "net/rpc" "net/rpc/jsonrpc" ) var ( sinkAddTable = "sink_add_table" sinkRemoveTable = "sink_remove_table" sinkEmitRowChangedEvents = "sink_emit_row_changed_events" sinkEmitDDLEvent = "...
yangwenmai/hackathon2022-plugin-server
1
PingCAP Hackathon 2022 plugin server(include http and rpc)
Go
yangwenmai
maiyang
s001.go
Go
package s001 // 输入一个递增排序的数组和一个数字 S,在数组中查找两个数,使得他们的和正好是 S, // 如果有多对数字的和等于 S,输出两个数的乘积最小的。 func FindTwoSum(arr []int, s int) (int, int) { ret := map[int]int{} for i := 0; i < len(arr); i++ { ret[arr[i]] = i } mini, minj := len(arr)-1, len(arr)-1 for i := 0; i < len(arr); i++ { interVal := s - arr[i] if j, ok :...
yangwenmai/talkgo-algorithms
4
TalkGo 算法之美题解
Go
yangwenmai
maiyang
s001_test.go
Go
package s001 import ( "testing" "github.com/stretchr/testify/require" ) func TestFindTwoSum(t *testing.T) { x1, x2 := FindTwoSum([]int{1, 3, 5, 7, 8, 10, 13}, 15) require.EqualValues(t, 2, x1) require.EqualValues(t, 5, x2) x1, x2 = FindTwoSum([]int{1, 2, 3, 7, 8, 10, 12}, 13) require.EqualValues(t, 0, x1) re...
yangwenmai/talkgo-algorithms
4
TalkGo 算法之美题解
Go
yangwenmai
maiyang
s002.go
Go
package s002 import ( "fmt" ) // 一个有序数组,从随即一位截断,把前段放在后边,如 4 5 6 7 1 2 3 求中位数 func FindMiddleNumber(arr []int) int { newArr := sort(arr) if len(newArr)%2 == 0 { // 偶数 return (newArr[len(newArr)/2-1] + newArr[len(newArr)/2]) / 2 } else { return newArr[len(newArr)/2] } } func sort(arr []int) []int { newArr ...
yangwenmai/talkgo-algorithms
4
TalkGo 算法之美题解
Go
yangwenmai
maiyang
s002_test.go
Go
package s002 import ( "testing" "github.com/stretchr/testify/require" ) func TestFindMiddle(t *testing.T) { arr := []int{7, 11, 15, 1, 2, 3} ret := FindMiddleNumber(arr) require.EqualValues(t, 5, ret) arr = []int{7, 11, 15, 1, 2, 3, 6} ret = FindMiddleNumber(arr) require.EqualValues(t, 6, ret) }
yangwenmai/talkgo-algorithms
4
TalkGo 算法之美题解
Go
yangwenmai
maiyang
s003.go
Go
package s003 // 给定字符串 S1,S2, 判断字符串 S1 中的字符是否都在字符串 S2 中(S1 长度 N,S2长度 M) func HasContains(str, substr string) bool { slen1 := len(str) slen2 := len(substr) if slen2 > slen1 { return false } for i := 0; i < slen1; i++ { tmp := str[i : i+slen2] if len(tmp) < slen2 { return false } if tmp == substr { r...
yangwenmai/talkgo-algorithms
4
TalkGo 算法之美题解
Go
yangwenmai
maiyang
s003_test.go
Go
package s003 import ( "testing" "github.com/stretchr/testify/require" ) func TestHasContains(t *testing.T) { s1, s2 := "123", "12" ret := HasContains(s1, s2) require.True(t, ret) s1, s2 = "123", "1234" ret = HasContains(s1, s2) require.False(t, ret) s1, s2 = "123", "123" ret = HasContains(s1, s2) requir...
yangwenmai/talkgo-algorithms
4
TalkGo 算法之美题解
Go
yangwenmai
maiyang
.storybook/main.ts
TypeScript
import type { StorybookConfig } from "@storybook/svelte-vite"; const config: StorybookConfig = { stories: ["../src/**/*.stories.@(js|jsx|ts|tsx|svelte)"], addons: [ "@storybook/addon-links", "@storybook/sveltekit", // "storybook-addon-pseudo-states", // "storybook-addon-mock-date", { name...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
.storybook/modes.ts
TypeScript
export const brandingLanguageViewportModes = { "mobile-en-default": { name: "Mobile / English / Default", viewport: "mobile", brandingName: "None", locale: "en", }, "desktop-en-default": { name: "Desktop / English / Default", viewport: "desktop", brandingName: "None", locale: "en",...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
.storybook/preview.ts
TypeScript
import type { Preview } from "@storybook/sveltekit"; import GlobalDecorator from "../src/stories/decorators/global-decorator.svelte"; import { brandingInfos } from "../src/stories/fixtures"; const preview: Preview = { parameters: { mockingDate: new Date("2024-10-18T13:24:21Z"), layout: "fullscreen", acti...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
.storybook/vitest.setup.ts
TypeScript
import { beforeAll } from "vitest"; import { setProjectAnnotations } from "@storybook/sveltekit"; import * as projectAnnotations from "./preview"; // This is an important step to apply the right configuration when testing your stories. // More info at: https://storybook.js.org/docs/api/portable-stories/portable-storie...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
eslint.config.js
JavaScript
import globals from "globals"; import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; /** @type {import('eslint').Linter.Config[]} */ export default [ { files: ["**/*.{js, ts, svelte}"] }, { languageOptions: { globals: globals.browser } }, pluginJs.configs.recommended, ...tseslint.configs...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/.eslintrc.config.js
JavaScript
import globals from "globals"; import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; /** @type {import('eslint').Linter.Config[]} */ export default [ { files: ["**/*.{js, ts, svelte}"] }, { languageOptions: { globals: globals.browser } }, pluginJs.configs.recommended, ...tseslint.configs...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/index.html
HTML
<!doctype html> <html lang="en"> <head> <meta name="robots" content="noindex" /> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Health Check – Web Billing Demo</title> </head> <bo...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/playwright-global-setup.ts
TypeScript
// We can use this function to define variables that will only be available // within the test method // https://playwright.dev/docs/test-global-setup-teardown async function globalSetup() {} export default globalSetup;
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/playwright.config.ts
TypeScript
import { fileURLToPath } from "url"; import { dirname, resolve } from "path"; import { defineConfig, devices } from "@playwright/test"; import dotenv from "dotenv"; /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ const __filename = fileURLToPath(import.meta.url); const __dirname ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/App.css
CSS
:root { font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; line-height: 1.5; font-weight: 400; color-scheme: light dark; color: #000000; background-...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/App.tsx
TypeScript (TSX)
import { RouterProvider, createBrowserRouter, redirect, } from "react-router-dom"; import "./App.css"; import WithEntitlement from "./components/WithEntitlement"; import WithoutEntitlement from "./components/WithoutEntitlement"; import LoginPage from "./pages/login"; import LandingPage from "./pages/landingPage";...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/Loader/index.tsx
TypeScript (TSX)
import React, { useEffect, useState } from "react"; import cat from "./nyan-cat.gif"; const randomSentences = [ "Asking ChatGPT to feed our crypto-cats", "Cleaning the cat litter in the meta-verse", "Preparing the automated laser pointers", "Uselessly calculating 1000 Fibonacci numbers", ]; const getRandomSe...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/AppLogo.tsx
TypeScript (TSX)
const AppLogo = () => ( <svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg" > <rect width="120" height="120" rx="24" fill="black" /> <path d="M8 24C8 15.1634 15.1634 8 24 8H32C36.4183 8 40 11.5817 40 16V32C40 36.4183 36.4183 40 32 40H1...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/AppStoreButton.tsx
TypeScript (TSX)
const AppStoreButton = () => ( <svg width="270" height="80" viewBox="0 0 270 80" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clipPath="url(#clip0_2356_9736)"> <path d="M248.499 0.00026H21.5133C20.6859 0.00026 19.8684 0.00026 19.0432 0.00426C18.3524 0.00826 17.6672 0.019...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/Button.tsx
TypeScript (TSX)
import React from "react"; const Button: React.FC<{ caption: string; onClick: () => void }> = ({ caption, onClick, }) => { return ( <button className="button" onClick={onClick}> {caption} </button> ); }; export default Button;
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/IChildrenProps.ts
TypeScript
import type React from "react"; interface IChildrenProps { /** * The inner content. */ children?: React.JSX.Element[] | React.JSX.Element | any; // eslint-disable-line @typescript-eslint/no-explicit-any } export default IChildrenProps;
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/LogoutButton.tsx
TypeScript (TSX)
import { useNavigate } from "react-router-dom"; const LogoutButton = () => { const navigate = useNavigate(); return ( <button className="logoutButton" onClick={() => navigate("/logout")}> Logout </button> ); }; export default LogoutButton;
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/PlayStoreButton.tsx
TypeScript (TSX)
const PlayStoreButton = () => ( <svg width="270" height="80" viewBox="0 0 270 80" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clipPath="url(#clip0_2359_9784)"> <path d="M260 80H10C4.5 80 0 75.5 0 70V10C0 4.5 4.5 -1.19209e-06 10 -1.19209e-06H260C265.5 -1.19209e-06 270 4....
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/WithEntitlement.tsx
TypeScript (TSX)
import type { PropsWithChildren } from "react"; import React, { useEffect, useState } from "react"; import { usePurchasesLoaderData } from "../util/PurchasesLoader"; import { useNavigate } from "react-router-dom"; const WithEntitlement: React.FC<PropsWithChildren> = ({ children }) => { const { customerInfo, purchase...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/components/WithoutEntitlement.tsx
TypeScript (TSX)
import type { PropsWithChildren } from "react"; import React, { useEffect, useState } from "react"; import { usePurchasesLoaderData } from "../util/PurchasesLoader"; import { useNavigate } from "react-router-dom"; const WithoutEntitlement: React.FC<PropsWithChildren> = ({ children }) => { const { customerInfo, purch...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/main.tsx
TypeScript (TSX)
import React from "react"; import ReactDOM from "react-dom/client"; import App from "./App.tsx"; ReactDOM.createRoot(document.getElementById("root")!).render( <React.StrictMode> <App /> </React.StrictMode>, );
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/pages/landingPage/index.tsx
TypeScript (TSX)
import React from "react"; import Button from "../../components/Button"; import { useNavigate } from "react-router-dom"; import AppLogo from "../../components/AppLogo"; const LandingPage: React.FC = () => { const navigate = useNavigate(); return ( <div className="landing"> <div className="landingMain"> ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/pages/login/index.tsx
TypeScript (TSX)
import React from "react"; import Button from "../../components/Button"; import { useNavigate } from "react-router-dom"; import { Purchases } from "@revenuecat/purchases-js"; const LoginPage: React.FC = () => { const navigate = useNavigate(); const navigateToAppUserIDPaywall = (appUserId?: string) => { if (app...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/pages/paywall/index.tsx
TypeScript (TSX)
import type { Offering, Package } from "@revenuecat/purchases-js"; import { PurchasesError } from "@revenuecat/purchases-js"; import React from "react"; import { useNavigate, useSearchParams } from "react-router-dom"; import { usePurchasesLoaderData } from "../../util/PurchasesLoader"; import Button from "../../compone...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/pages/rc_paywall/index.tsx
TypeScript (TSX)
import type { PurchaseResult } from "@revenuecat/purchases-js"; import { Purchases } from "@revenuecat/purchases-js"; import React, { useEffect } from "react"; import { usePurchasesLoaderData } from "../../util/PurchasesLoader"; import { useNavigate, useSearchParams } from "react-router-dom"; const RCPaywallPage: Reac...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/pages/success/index.tsx
TypeScript (TSX)
import React from "react"; import AppStoreButton from "../../components/AppStoreButton"; import PlayStoreButton from "../../components/PlayStoreButton"; import AppLogo from "../../components/AppLogo"; import LogoutButton from "../../components/LogoutButton"; const SuccessPage: React.FC = () => { const queryString = ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/tests/main.test.ts
TypeScript
import type { Browser, Page, Response, Locator } from "@playwright/test"; import test, { expect } from "@playwright/test"; const _LOCAL_URL = "http://localhost:3001/"; const CARD_SELECTOR = "div.card"; const PACKAGE_SELECTOR = "button.rc-pw-package"; const RC_PAYWALL_TEST_OFFERING_ID = "rc_paywalls_e2e_test_2"; const ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/util/PurchasesLoader.ts
TypeScript
import type { CustomerInfo, Offering } from "@revenuecat/purchases-js"; import { LogLevel, Purchases } from "@revenuecat/purchases-js"; import type { LoaderFunction } from "react-router-dom"; import { redirect, useLoaderData } from "react-router-dom"; const apiKey = import.meta.env.VITE_RC_API_KEY as string; type IPu...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/src/vite-env.d.ts
TypeScript
/// <reference types="vite/client" />
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
examples/webbilling-demo/vite.config.ts
TypeScript
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], server: { port: 3001, }, });
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
global.d.ts
TypeScript
declare module "*.svelte" { export { SvelteComponentDev as default } from "svelte/internal"; } declare global {}
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
scripts/docs/index.html
HTML
<!-- This file is used to redirect visitors to the latest version of the docs --> <!DOCTYPE html> <html> <head> <meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/purchases-js-docs/1.0.5/" /> </head> <body> </body> </html>
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
scripts/translate_locales.py
Python
import json import os import requests import sys def get_api_key(): api_key = os.getenv("GEMINI_API_KEY", None) if api_key is None: raise ValueError("Env var GEMINI_API_KEY is not set") return api_key def load_keys_context(directory): """Load the keys context file if it exists.""" contex...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/behavioural-events/event.ts
TypeScript
import { camelToUnderscore } from "../helpers/camel-to-underscore"; import { v4 as uuidv4 } from "uuid"; export type EventData = { eventName: string; traceId: string; appUserId: string; properties: EventProperties; context: EventContext; }; type EventContextSingleValue = string | number | boolean; type Eve...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/behavioural-events/events-tracker.ts
TypeScript
import { v4 as uuid } from "uuid"; import { RC_ANALYTICS_ENDPOINT } from "../helpers/constants"; import { HttpMethods } from "msw"; import { getHeaders } from "../networking/http-client"; import { FlushManager } from "./flush-manager"; import { Logger } from "../helpers/logger"; import { type EventProperties, Event } f...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/behavioural-events/flush-manager.ts
TypeScript
import { Logger } from "../helpers/logger"; export class FlushManager { private readonly initialDelay: number; private readonly maxDelay: number; private readonly jitterPercent: number; private readonly callback: () => Promise<void>; private currentDelay: number; private timeoutId: ReturnType<typeof setTim...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/behavioural-events/sdk-event-context.ts
TypeScript
import { VERSION } from "../helpers/constants"; import { type EventContext } from "./event"; export type SDKEventContextSource = "sdk" | "wpl" | string; export interface SDKEventContext { libraryName: string; libraryVersion: string; locale: string; userAgent: string; timeZone: string; screenWidth: number;...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/behavioural-events/sdk-event-helpers.ts
TypeScript
import type { CheckoutFlowErrorEvent, CheckoutSessionFinishedEvent, CheckoutSessionClosedEvent, CheckoutSessionErroredEvent, CheckoutPurchaseSuccessfulDismissEvent, CheckoutPaymentFormGatewayErrorEvent, CheckoutPaymentFormSubmitEvent, } from "./sdk-events"; import { SDKEventName, type CheckoutBillingF...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/behavioural-events/sdk-events.ts
TypeScript
import { type EventProperties } from "./event"; export type SDKEvent = | SDKInitializedEvent | CheckoutSessionStartEvent | CheckoutSessionFinishedEvent | CheckoutSessionClosedEvent | CheckoutFlowErrorEvent | CheckoutSessionErroredEvent | CheckoutBillingFormImpressionEvent | CheckoutBillingFormDismissEv...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/branding.ts
TypeScript
/** * @public * `BrandingAppearance` defines the appearance settings * of an app's branding configuration. */ export interface BrandingAppearance { color_buttons_primary: string; color_accent: string; color_error: string; color_product_info_bg: string; color_form_bg: string; color_page_bg: string; fo...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/customer-info.ts
TypeScript
import { type NonSubscriptionResponse, type SubscriberEntitlementResponse, type SubscriberResponse, type SubscriberSubscriptionResponse, } from "../networking/responses/subscriber-response"; import { ErrorCode, PurchasesError } from "./errors"; /** * The store where the user originally subscribed. * @public ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/errors.ts
TypeScript
import { type PurchaseFlowError, PurchaseFlowErrorCode, } from "../helpers/purchase-operation-helper"; /** * Error codes for the Purchases SDK. * @public */ export enum ErrorCode { UnknownError = 0, UserCancelledError = 1, StoreProblemError = 2, PurchaseNotAllowedError = 3, PurchaseInvalidError = 4, ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/flags-config.ts
TypeScript
/** * Flags used to enable or disable certain features in the sdk. * @public */ export interface FlagsConfig { /** * If set to true, the SDK will automatically collect UTM parameters and store them as at the time of purchase. * @defaultValue true */ autoCollectUTMAsMetadata?: boolean; /** * If set...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/get-offerings-params.ts
TypeScript
/** * Keywords for identifying specific offerings in the {@link Purchases.getOfferings} method. * @public */ export enum OfferingKeyword { /** * The current offering. */ Current = "current", } /** * Parameters for the {@link Purchases.getOfferings} method. * @public */ export interface GetOfferingsPara...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/http-config.ts
TypeScript
/** * Parameters used to customise the http requests executed by purchases-js. * @public */ export interface HttpConfig { /** * Additional headers to include in all HTTP requests. */ additionalHeaders?: Record<string, string>; /** * Set this property to your proxy URL *only* if you've received a proxy...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/log-level.ts
TypeScript
/** * Possible levels to log in the console. * @public */ export enum LogLevel { /** * No logs will be shown in the console. */ Silent = 0, /** * Only errors will be shown in the console. */ Error = 1, /** * Only warnings and errors will be shown in the console. */ Warn = 2, /** * ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/offerings.ts
TypeScript
import { type OfferingResponse, type PackageResponse, type TargetingResponse, } from "../networking/responses/offerings-response"; import type { NonSubscriptionOptionResponse, PriceResponse, PricingPhaseResponse, ProductResponse, SubscriptionOptionResponse, } from "../networking/responses/products-respo...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/purchase-params.ts
TypeScript
import type { Package, PurchaseMetadata, PurchaseOption } from "./offerings"; import type { BrandingAppearance } from "./branding"; /** * Parameters used to customise the purchase flow when invoking the `.purchase` method. * @public */ export interface PurchaseParams { /** * The package you want to purchase. ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/purchase-result.ts
TypeScript
import type { CustomerInfo } from "./customer-info"; import type { RedemptionInfo } from "./redemption-info"; /** * Represents the result of a purchase operation. * @public */ export interface PurchaseResult { /** * The customer information after the purchase. */ readonly customerInfo: CustomerInfo; /**...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/redemption-info.ts
TypeScript
import type { CheckoutStatusResponse } from "../networking/responses/checkout-status-response"; /** * This object gives you access to the purchase redemption data when * the purchase can be redeemed to a mobile user, like in the case of anonymous users. * @public */ export interface RedemptionInfo { /** * The...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/entities/render-paywall-params.ts
TypeScript
import type { Offering } from "./offerings"; /** * Parameters for the {@link Purchases.renderPaywall} method. * @public */ export interface RenderPaywallParams { /** * The identifier of the offering to fetch the paywall for. * Can be a string identifier or one of the predefined keywords. */ readonly of...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/api-key-helper.ts
TypeScript
export function isSandboxApiKey(apiKey: string): boolean { return apiKey ? apiKey.startsWith("rcb_sb_") : false; }
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/camel-to-underscore.ts
TypeScript
export function camelToUnderscore( obj: Record<string, unknown>, ): Record<string, unknown> { const result: Record<string, unknown> = {}; for (const key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { const underscoreKey = key.replace(/([A-Z])/g, "_$1").toLowerCase(); const value =...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/configuration-validators.ts
TypeScript
import { ErrorCode, PurchasesError } from "../entities/errors"; import { SDK_HEADERS } from "../networking/http-client"; export function validateApiKey(apiKey: string) { const api_key_regex = /^rcb_[a-zA-Z0-9_.-]+$/; if (!api_key_regex.test(apiKey)) { throw new PurchasesError( ErrorCode.InvalidCredential...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/constants.ts
TypeScript
export const VERSION = "1.0.5"; export const RC_ENDPOINT = import.meta.env.VITE_RC_ENDPOINT as string; export const RC_ANALYTICS_ENDPOINT = import.meta.env .VITE_RC_ANALYTICS_ENDPOINT as string; export const ALLOW_TAX_CALCULATION_FF = import.meta.env.VITE_ALLOW_TAX_CALCULATION_FF === "true";
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/decorators.ts
TypeScript
import { type Purchases } from "../main"; export function requiresLoadedResources< This extends Purchases, Args extends never[], Result, >( target: (this: This, ...args: Args) => Promise<Result>, // eslint-disable-next-line @typescript-eslint/no-unused-vars _context: ClassMethodDecoratorContext< This, ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/duration-helper.ts
TypeScript
import { Logger } from "./logger"; /** * Represents a unit of time. * @public */ export enum PeriodUnit { Year = "year", Month = "month", Week = "week", Day = "day", } /** * Represents a period of time. * @public */ export interface Period { /** * The number of units in the period. */ number: ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/logger.ts
TypeScript
import { LogLevel } from "../entities/log-level"; export class Logger { private static logLevel: LogLevel = LogLevel.Silent; static setLogLevel(logLevel: LogLevel) { this.logLevel = logLevel; } static log(message: string, logLevel: LogLevel = this.logLevel): void { const messageWithTag = `[Purchases]...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/offerings-parser.ts
TypeScript
import { type OfferingResponse, type OfferingsResponse, type PlacementsResponse, } from "../networking/responses/offerings-response"; import { type ProductResponse, type ProductsResponse, } from "../networking/responses/products-response"; import { type Offering, type Offerings, type Package, toOfferi...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/paywall-variables-helpers.ts
TypeScript
import { type Offering, type Package, type Price, ProductType, type PurchaseOption, type SubscriptionOption, } from "../entities/offerings"; import { type Period, PeriodUnit } from "./duration-helper"; import { type VariableDictionary } from "@revenuecat/purchases-ui-js"; import { type Translator } from ".....
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/price-labels.ts
TypeScript
import { parseISODuration } from "./duration-helper"; import { type Translator } from "../ui/localization/translator"; import { LocalizationKeys } from "../ui/localization/supportedLanguages"; const microsToDollars = (micros: number): number => { return micros / 1000000; }; export const formatPrice = ( priceInMi...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/purchase-operation-helper.ts
TypeScript
import { ErrorCode, PurchasesError, type PurchasesErrorExtra, } from "../entities/errors"; import { type Backend } from "../networking/backend"; import { type CheckoutStartResponse } from "../networking/responses/checkout-start-response"; import { CheckoutSessionStatus, type CheckoutStatusError, CheckoutSta...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/string-helpers.ts
TypeScript
export const capitalize = (value: string) => { try { return value.charAt(0).toUpperCase() + value.slice(1); } catch { return value; } };
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/type-helper.ts
TypeScript
export function notEmpty<Type>(value: Type | null | undefined): value is Type { return value !== null && value !== undefined; }
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/utm-params.ts
TypeScript
export const autoParseUTMParams = () => { const params = new URLSearchParams(window.location.search); const possibleParams = [ "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", ]; const utmParams: { [key: string]: string } = {}; possibleParams.forEach((param) => { ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/uuid-helper.ts
TypeScript
/** * Generates a UUID v4 string. * Uses crypto.randomUUID if available, otherwise falls back to a manual implementation. * @returns A UUID v4 string in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx */ export function generateUUID(): string { if (crypto && crypto.randomUUID) { return crypto.randomUUID(); ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/helpers/validators.ts
TypeScript
import { Logger } from "./logger"; import { ErrorCode, PurchasesError } from "../entities/errors"; export function validateEmail(email: string): string | null { if (email.trim() === "") { return "You need to provide your email address to continue."; } else if (!email.match(/^[^@]+@[^@]+\.[^@]+$/)) { return...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/main.ts
TypeScript
import type { Offering, Offerings, Package } from "./entities/offerings"; import PurchasesUi from "./ui/purchases-ui.svelte"; import { type CustomerInfo, toCustomerInfo } from "./entities/customer-info"; import { ErrorCode, PurchasesError, UninitializedPurchasesError, } from "./entities/errors"; import { type ...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/assets.ts
TypeScript
export const buildAssetURL = (assetPath: string): string => { const assetsBaseUrl = (import.meta.env.VITE_ASSETS_ENDPOINT as string) || ""; return `${assetsBaseUrl}/${assetPath}`; };
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/backend.ts
TypeScript
import { type OfferingsResponse } from "./responses/offerings-response"; import { performRequest } from "./http-client"; import { CheckoutCalculateTaxEndpoint, CheckoutCompleteEndpoint, CheckoutStartEndpoint, GetBrandingInfoEndpoint, GetCheckoutStatusEndpoint, GetCustomerInfoEndpoint, GetOfferingsEndpoint...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/endpoints.ts
TypeScript
type HttpMethodType = "GET" | "POST"; const SUBSCRIBERS_PATH = "/v1/subscribers"; const RC_BILLING_PATH = "/rcbilling/v1"; interface Endpoint { method: HttpMethodType; name: string; urlPath(): string; } export class GetOfferingsEndpoint implements Endpoint { private readonly appUserId: string; constructor...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/http-client.ts
TypeScript
import { type SupportedEndpoint } from "./endpoints"; import { type BackendErrorCode, ErrorCode, ErrorCodeUtils, PurchasesError, } from "../entities/errors"; import { RC_ENDPOINT, VERSION } from "../helpers/constants"; import { StatusCodes } from "http-status-codes"; import { isSandboxApiKey } from "../helpers/...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/responses/branding-response.ts
TypeScript
import type { BrandingAppearance } from "../../entities/branding"; export type BrandingInfoResponse = { app_icon: string | null; app_icon_webp: string | null; appearance: BrandingAppearance | null; id: string; app_name: string | null; support_email?: string | null; gateway_tax_collection_enabled: boolean...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/responses/checkout-calculate-tax-response.ts
TypeScript
import type { StripeElementsConfiguration } from "./stripe-elements"; export interface TaxBreakdown { taxable_amount_in_micros: number; tax_amount_in_micros: number; display_name: string; tax_rate_in_micros: number | null; country: string | null; state: string | null; tax_type: string | null; } export i...
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui
src/networking/responses/checkout-complete-response.ts
TypeScript
export interface CheckoutCompleteResponse { operation_session_id: string; gateway_params: { client_secret?: string; }; }
yannbf/purchases-js-repro
0
TypeScript
yannbf
Yann Braga
chromaui