diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-15 15:19:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-15 15:19:41 +0100 |
commit | ff6a266e3f5cb740770a2a186bdfdd0cb871e174 (patch) | |
tree | 919c4d0d8e81719388a62971c5501dc6139c216d /client/src/root-helpers | |
parent | b46489f8e412bed010a00fb9995dc2f84220fc5a (diff) | |
download | PeerTube-ff6a266e3f5cb740770a2a186bdfdd0cb871e174.tar.gz PeerTube-ff6a266e3f5cb740770a2a186bdfdd0cb871e174.tar.zst PeerTube-ff6a266e3f5cb740770a2a186bdfdd0cb871e174.zip |
Clearer theme select labels
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r-- | client/src/root-helpers/index.ts | 1 | ||||
-rw-r--r-- | client/src/root-helpers/string.ts | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/root-helpers/index.ts b/client/src/root-helpers/index.ts index 3b95b4b99..0492924fd 100644 --- a/client/src/root-helpers/index.ts +++ b/client/src/root-helpers/index.ts | |||
@@ -4,5 +4,6 @@ export * from './images' | |||
4 | export * from './local-storage-utils' | 4 | export * from './local-storage-utils' |
5 | export * from './peertube-web-storage' | 5 | export * from './peertube-web-storage' |
6 | export * from './plugins-manager' | 6 | export * from './plugins-manager' |
7 | export * from './string' | ||
7 | export * from './utils' | 8 | export * from './utils' |
8 | export * from './video' | 9 | export * from './video' |
diff --git a/client/src/root-helpers/string.ts b/client/src/root-helpers/string.ts new file mode 100644 index 000000000..f81587494 --- /dev/null +++ b/client/src/root-helpers/string.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | function capitalizeFirstLetter (str: string) { | ||
2 | return str.charAt(0).toUpperCase() + str.slice(1) | ||
3 | } | ||
4 | |||
5 | export { | ||
6 | capitalizeFirstLetter | ||
7 | } | ||