Skip to content

Commit 6513427

Browse files
authored
License and CDN config (#10)
* Hide split div while loading * Add missing LICENSE.txt * Add CDN and verson config
1 parent aca86fe commit 6513427

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

LICENSE.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (c) 2025, HoloViz team (holoviz.org).
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are
6+
met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the
14+
distribution.
15+
16+
* Neither the name of the copyright holder nor the names of any
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

src/panel_splitjs/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@
33
import param
44
from bokeh.embed.bundle import extension_dirs
55
from panel.custom import Children, JSComponent
6+
from panel.io.resources import EXTENSION_CDN
67
from panel.layout.base import ListLike
8+
from panel.util import base_version
79

10+
from .__version import __version__ # noqa
11+
12+
IS_RELEASE = __version__ == base_version(__version__)
813
BASE_PATH = Path(__file__).parent
914
DIST_PATH = BASE_PATH / 'dist'
15+
CDN_BASE = f"https://cdn.holoviz.org/panel-splitjs/v{base_version(__version__)}"
16+
CDN_DIST = f"{CDN_BASE}/panel-material-ui.bundle.js"
1017

1118
extension_dirs['panel-splitjs'] = DIST_PATH
19+
EXTENSION_CDN[DIST_PATH] = CDN_BASE
1220

1321

1422
class Size(param.Parameter):

src/panel_splitjs/dist/css/splitjs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
/* Style for initial load to prevent FOUC */
17-
.split.loading {
17+
.loading {
1818
visibility: hidden;
1919
}
2020

0 commit comments

Comments
 (0)