Browse Source

chore: remove templates folder

trgiangdo 1 year ago
parent
commit
239597e4a5

+ 0 - 1
MANIFEST.in

@@ -1,3 +1,2 @@
 include src/taipy/*.json
 include src/taipy/gui_core/lib/*.js
-recursive-include src/taipy/templates *

+ 0 - 5
src/taipy/templates/taipy-default-template/cookiecutter.json

@@ -1,5 +0,0 @@
-{
-    "application_name": "taipy_application",
-    "application_main_file": "main.py",
-    "application_title": "Default title"
-}

BIN
src/taipy/templates/taipy-default-template/{{cookiecutter.application_name}}/images/taipy_logo.jpg


+ 0 - 1
src/taipy/templates/taipy-default-template/{{cookiecutter.application_name}}/requirements.txt

@@ -1 +0,0 @@
-taipy>=2.2

+ 0 - 41
src/taipy/templates/taipy-default-template/{{cookiecutter.application_name}}/{{cookiecutter.application_main_file}}

@@ -1,41 +0,0 @@
-# Copyright 2023 Avaiga Private Limited
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-#        http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
-# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations under the License.
-
-import webbrowser
-
-import taipy as tp
-
-
-logo = "images/taipy_logo.jpg"
-upload_file = None
-
-page = """
-<center>
-<|navbar|lov={[("page1", "Homepage"), ("https://docs.taipy.io/en/latest/manuals/about/", "Taipy Docs"), ("https://docs.taipy.io/en/latest/getting_started/", "Getting Started")]}|>
-</center>
-
-<|
-<center>
-    <|{logo}|image|height=250px|width=250px|on_action=image_action|>
-</center>
-|>
-"""
-
-
-def image_action(state):
-    webbrowser.open("https://taipy.io")
-
-
-if __name__ == "__main__":
-    tp.Gui(page=page).run(
-        title="{{cookiecutter.application_title}}",
-        dark_mode=False,
-    )