Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
Loading items

Target

Select target project
  • ProjectLeaf/DashboardLeaf
1 result
Select Git revision
Loading items
Show changes

Commits on Source 3

Showing
with 19 additions and 19 deletions
......@@ -131,7 +131,7 @@ from typing import Dict
from flask import Blueprint
from logic.tile.Tile import Tile
from dashboard_leaf.logic.tile.Tile import Tile
class MyCustomClockTile(Tile):
EXAMPLE_SETTINGS = {}
......@@ -257,7 +257,7 @@ class MyWeatherService(MultiCacheKeyService):
The services inside the `services` folder will be automatically scanned and recognized upon server start. There is no need to perform a special registration.
To use your service inside a tile use the following lines:
```python
from logic.service.ServiceManager import ServiceManager
from dashboard_leaf.logic.service.ServiceManager import ServiceManager
weatherService = ServiceManager.get_instance().get_service_by_type_name('MyWeatherService')
cacheKey = f'{pageName}_{self._uniqueName}'
......
......@@ -5,12 +5,12 @@ from TheCodeLabs_FlaskUtils.FlaskBaseApp import FlaskBaseApp
from flask import Flask
from flask_socketio import SocketIO
from blueprints import Routes
from logic import Constants
from logic.Constants import CONFIG_DIR
from logic.page.PageManager import PageManager
from logic.service.ServiceRegistry import ServiceRegistry
from logic.tile.TileScheduler import TileScheduler
from dashboard_leaf.blueprints import Routes
from dashboard_leaf.logic import Constants
from dashboard_leaf.logic.Constants import CONFIG_DIR
from dashboard_leaf.logic.page.PageManager import PageManager
from dashboard_leaf.logic.service.ServiceRegistry import ServiceRegistry
from dashboard_leaf.logic.tile.TileScheduler import TileScheduler
LOGGER = DefaultLogger().create_logger_if_not_exists(Constants.APP_NAME)
......
File moved
......@@ -4,7 +4,7 @@ from datetime import datetime
import pytz
import requests
from logic import Constants
from dashboard_leaf.logic import Constants
def join_url_parts(*args: str) -> str:
......
......@@ -4,7 +4,7 @@ import pkgutil
from abc import ABC, abstractmethod
from typing import List, Type
from logic import Constants
from dashboard_leaf.logic import Constants
LOGGER = logging.getLogger(Constants.APP_NAME)
......
......@@ -5,10 +5,10 @@ from typing import List, Dict
from flask import Flask
from logic import Constants
from logic.page.PageInstance import PageInstance, TileLayoutSettings
from logic.tile import TileScheduler
from logic.tile.TileRegistry import TileRegistry
from dashboard_leaf.logic import Constants
from dashboard_leaf.logic.page.PageInstance import PageInstance, TileLayoutSettings
from dashboard_leaf.logic.tile import TileScheduler
from dashboard_leaf.logic.tile.TileRegistry import TileRegistry
LOGGER = logging.getLogger(Constants.APP_NAME)
......
......@@ -5,8 +5,8 @@ from typing import List, Dict
from TheCodeLabs_BaseUtils.MultiCacheKeyService import MultiCacheKeyService
from logic import Constants
from logic.service.ServiceRegistry import ServiceRegistry
from dashboard_leaf.logic import Constants
from dashboard_leaf.logic.service.ServiceRegistry import ServiceRegistry
LOGGER = logging.getLogger(Constants.APP_NAME)
......
......@@ -5,8 +5,8 @@ from typing import Type
from TheCodeLabs_BaseUtils.MultiCacheKeyService import MultiCacheKeyService
from logic import Constants
from logic.Registry import Registry
from dashboard_leaf.logic import Constants
from dashboard_leaf.logic.Registry import Registry
LOGGER = logging.getLogger(Constants.APP_NAME)
......
......@@ -4,7 +4,7 @@ from typing import Dict
import requests
from TheCodeLabs_BaseUtils.MultiCacheKeyService import MultiCacheKeyService
from logic import Helpers
from dashboard_leaf.logic import Helpers
class StorageLeafService(MultiCacheKeyService):
......