-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from KnowledgeSeed/feature/create_new_app
Feature/create new app
- Loading branch information
Showing
102 changed files
with
13,780 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
t = '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import app | ||
from .server.Export import Export | ||
from .server.Validation import Validation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"projectName": "$projectId", | ||
"projectId": "$projectId", | ||
"authenticationMode": "NoLogin", | ||
"mainPage": "$mainPage", | ||
"analogicApiAuthenticationMode": "unsecured" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from flask import Blueprint | ||
|
||
default = Blueprint('default', __name__, static_folder='static', static_url_path='/apps/default/static') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import io | ||
import logging | ||
|
||
import numpy as np | ||
import pandas as pd | ||
import xlsxwriter | ||
from TM1py.Utils.Utils import build_pandas_dataframe_from_cellset | ||
|
||
pd.set_option('display.float_format', lambda x: '%.3f' % x) | ||
|
||
|
||
def getMDXJSONByRequest(request, setting): | ||
mdx = setting.get_mdx(request.args['key']) | ||
for k in request.args: | ||
mdx = mdx.replace('$' + k, request.args[k].replace('"', '\\"')) | ||
|
||
mdx = '{"MDX" :"' + mdx + '"}' | ||
return mdx | ||
|
||
|
||
class Export: | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def getLogger(self): | ||
return logging.getLogger(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import pandas as pd | ||
|
||
|
||
def validateParameter(title, expected, received): | ||
if expected != received: | ||
return "expected " + title + ": " + expected + " but received: " + received + '<br/>' | ||
return '' | ||
|
||
class Validation: | ||
|
||
def __init__(self): | ||
pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Empty file.
3 changes: 3 additions & 0 deletions
3
analogic/new_app_structure/static/assets/js/configs/event-map.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* global app */ | ||
'use strict'; | ||
EventMap = {}; |
3 changes: 3 additions & 0 deletions
3
analogic/new_app_structure/static/assets/js/configs/repository.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* global app */ | ||
'use strict'; | ||
Repository = {}; |
5 changes: 5 additions & 0 deletions
5
analogic/new_app_structure/static/assets/js/configs/widget-config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* global app */ | ||
'use strict'; | ||
WidgetConfig = { | ||
|
||
}; |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.