Skip to content

Commit 5f9c148

Browse files
frankzhaopengSSebo
andauthored
Realtime (#7)
* feat: receive realtime event * chore: modify rollup config Co-authored-by: ssebo <[email protected]>
1 parent 440cb92 commit 5f9c148

25 files changed

+2853
-2579
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test/*
2+
tools/*
3+
config/*
4+
docs/*
5+
jest.config.js
6+
segupJest.js

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
10+
"overrides": [
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"ecmaVersion": "latest",
15+
"sourceType": "module"
16+
},
17+
"plugins": [
18+
"@typescript-eslint"
19+
],
20+
"rules": {
21+
"@typescript-eslint/explicit-function-return-type": "off"
22+
}
23+
}
24+

docs/assets/main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/style.css

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -825,15 +825,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
825825
padding-left: 5.5rem;
826826
}
827827

828-
#tsd-sidebar-links a {
829-
margin-top: 0;
830-
margin-bottom: 0.5rem;
831-
line-height: 1.25rem;
832-
}
833-
#tsd-sidebar-links a:last-of-type {
834-
margin-bottom: 0;
835-
}
836-
837828
a.tsd-index-link {
838829
margin: 0.25rem 0;
839830
font-size: 1rem;
@@ -987,8 +978,7 @@ a.tsd-index-link {
987978
right: -40px;
988979
}
989980
#tsd-search .field input,
990-
#tsd-search .title,
991-
#tsd-toolbar-links a {
981+
#tsd-search .title {
992982
transition: opacity 0.2s;
993983
}
994984
#tsd-search .results {
@@ -1032,8 +1022,7 @@ a.tsd-index-link {
10321022
top: 0;
10331023
opacity: 1;
10341024
}
1035-
#tsd-search.has-focus .title,
1036-
#tsd-search.has-focus #tsd-toolbar-links a {
1025+
#tsd-search.has-focus .title {
10371026
z-index: 0;
10381027
opacity: 0;
10391028
}
@@ -1047,22 +1036,6 @@ a.tsd-index-link {
10471036
display: block;
10481037
}
10491038

1050-
#tsd-toolbar-links {
1051-
position: absolute;
1052-
top: 0;
1053-
right: 2rem;
1054-
height: 100%;
1055-
display: flex;
1056-
align-items: center;
1057-
justify-content: flex-end;
1058-
}
1059-
#tsd-toolbar-links a {
1060-
margin-left: 1.5rem;
1061-
}
1062-
#tsd-toolbar-links a:hover {
1063-
text-decoration: underline;
1064-
}
1065-
10661039
.tsd-signature {
10671040
margin: 0 0 1rem 0;
10681041
padding: 1rem 0.5rem;
@@ -1151,7 +1124,6 @@ ul.tsd-type-parameter-list h5 {
11511124
display: flex;
11521125
justify-content: space-between;
11531126
height: 2.5rem;
1154-
margin: 0 auto;
11551127
}
11561128
.tsd-page-toolbar .table-cell {
11571129
position: relative;
@@ -1161,11 +1133,6 @@ ul.tsd-type-parameter-list h5 {
11611133
.tsd-page-toolbar .table-cell:first-child {
11621134
width: 100%;
11631135
}
1164-
.tsd-page-toolbar .tsd-toolbar-icon {
1165-
box-sizing: border-box;
1166-
line-height: 0;
1167-
padding: 12px 0;
1168-
}
11691136

11701137
.tsd-page-toolbar--hide {
11711138
transform: translateY(-100%);

docs/assets/widgets.png

480 Bytes
Loading

docs/assets/[email protected]

855 Bytes
Loading

docs/classes/FPUser.html

Lines changed: 21 additions & 23 deletions
Large diffs are not rendered by default.

docs/classes/FeatureProbe.html

Lines changed: 83 additions & 54 deletions
Large diffs are not rendered by default.

docs/functions/initializePlatform.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>initializePlatform | FeatureProbe Client Side SDK for JavaScript (1.2.0)</title><meta name="description" content="Documentation for FeatureProbe Client Side SDK for JavaScript (1.2.0)"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>initializePlatform | FeatureProbe Client Side SDK for JavaScript (1.2.1)</title><meta name="description" content="Documentation for FeatureProbe Client Side SDK for JavaScript (1.2.1)"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
22
<div class="tsd-toolbar-contents container">
33
<div class="table-cell" id="tsd-search" data-base="..">
4-
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5-
<div class="field">
6-
<div id="tsd-toolbar-links"></div></div>
4+
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
75
<ul class="results">
86
<li class="state loading">Preparing search index...</li>
9-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">FeatureProbe Client Side SDK for JavaScript (1.2.0)</a></div>
10-
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
7+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">FeatureProbe Client Side SDK for JavaScript (1.2.1)</a></div>
8+
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
119
<div class="container container-main">
1210
<div class="col-8 col-content">
1311
<div class="tsd-page-title">
1412
<ul class="tsd-breadcrumb">
15-
<li><a href="../index.html">FeatureProbe Client Side SDK for JavaScript (1.2.0)</a></li>
13+
<li><a href="../index.html">FeatureProbe Client Side SDK for JavaScript (1.2.1)</a></li>
1614
<li><a href="initializePlatform.html">initializePlatform</a></li></ul>
1715
<h1>Function initializePlatform</h1></div>
1816
<section class="tsd-panel">
@@ -30,7 +28,7 @@ <h5>options: <span class="tsd-signature-type">IOption</span></h5>
3028
</div></li></ul></div>
3129
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
3230
<ul>
33-
<li>Defined in <a href="https://github.com/FeatureProbe/client-sdk-js/blob/f62321e/src/index.ts#L12">src/index.ts:12</a></li></ul></aside></li></ul></section></div>
31+
<li>Defined in <a href="https://github.com/FeatureProbe/client-sdk-js/blob/c496d61/src/index.ts#L12">src/index.ts:12</a></li></ul></aside></li></ul></section></div>
3432
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
3533
<div class="tsd-navigation settings">
3634
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -50,7 +48,7 @@ <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option
5048
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
5149
<div class="tsd-accordion-details">
5250
<ul>
53-
<li><a href="../index.html">Feature<wbr/>Probe <wbr/>Client <wbr/>Side SDK for <wbr/>Java<wbr/>Script (1.2.0)</a>
51+
<li><a href="../index.html">Feature<wbr/>Probe <wbr/>Client <wbr/>Side SDK for <wbr/>Java<wbr/>Script (1.2.1)</a>
5452
<ul></ul></li></ul></div></details></nav>
5553
<nav class="tsd-navigation secondary menu-sticky">
5654
<ul>

0 commit comments

Comments
 (0)