Commit 0b45a305 authored by Luca Braun's avatar Luca Braun

Refactored Dashboard

parent 7a4e0313
2021/03/09-14:07:30.955 3bdc Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.1fcc5587\flutter_tools_chrome_device.ef533692\Default\AutofillStrikeDatabase/MANIFEST-000001
2021/03/09-14:07:30.956 3bdc Recovering log #3
2021/03/09-14:07:30.956 3bdc Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.1fcc5587\flutter_tools_chrome_device.ef533692\Default\AutofillStrikeDatabase/000003.log
2021/03/09-16:02:38.898 33fc Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.ee53618f\flutter_tools_chrome_device.ec8c1ca2\Default\AutofillStrikeDatabase/MANIFEST-000001
2021/03/09-16:02:38.898 33fc Recovering log #3
2021/03/09-16:02:38.899 33fc Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.ee53618f\flutter_tools_chrome_device.ec8c1ca2\Default\AutofillStrikeDatabase/000003.log
2021/03/09-12:18:45.146 3080 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.782406af\flutter_tools_chrome_device.a8330de4\Default\AutofillStrikeDatabase/MANIFEST-000001
2021/03/09-15:17:15.703 1204 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.c522d41b\flutter_tools_chrome_device.8027b81f\Default\AutofillStrikeDatabase/MANIFEST-000001
2021/03/09-15:17:15.705 1204 Recovering log #3
2021/03/09-15:17:15.705 1204 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.c522d41b\flutter_tools_chrome_device.8027b81f\Default\AutofillStrikeDatabase/000003.log
2021/03/09-14:07:30.954 3bdc Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.1fcc5587\flutter_tools_chrome_device.ef533692\Default\BudgetDatabase/MANIFEST-000001
2021/03/09-14:07:30.954 3bdc Recovering log #3
2021/03/09-14:07:30.954 3bdc Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.1fcc5587\flutter_tools_chrome_device.ef533692\Default\BudgetDatabase/000003.log
2021/03/09-16:02:38.881 33fc Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.ee53618f\flutter_tools_chrome_device.ec8c1ca2\Default\BudgetDatabase/MANIFEST-000001
2021/03/09-16:02:38.881 33fc Recovering log #3
2021/03/09-16:02:38.881 33fc Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.ee53618f\flutter_tools_chrome_device.ec8c1ca2\Default\BudgetDatabase/000003.log
2021/03/09-12:18:45.173 2288 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.782406af\flutter_tools_chrome_device.a8330de4\Default\BudgetDatabase/MANIFEST-000001
2021/03/09-15:17:15.571 1204 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.c522d41b\flutter_tools_chrome_device.8027b81f\Default\BudgetDatabase/MANIFEST-000001
2021/03/09-15:17:15.571 1204 Recovering log #3
2021/03/09-15:17:15.571 1204 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.c522d41b\flutter_tools_chrome_device.8027b81f\Default\BudgetDatabase/000003.log
......@@ -19,15 +19,15 @@ define("main_module.bootstrap", ["web_entrypoint.dart", "dart_sdk"], function(ap
main();
});
}
window.$dartAppId = "tBn/Y71DDV3j4znroLVwFA==";
window.$dartAppId = "J+TMOIhiHOcFXyNx4XwAbQ==";
window.$dartReloadConfiguration = "ReloadConfiguration.none";
window.$dartModuleStrategy = "require-js";
window.$loadModuleConfig = require;
window.$dwdsVersion = "7.1.1";
window.$dwdsDevHandlerPath = "http://localhost:53611/$dwdsSseHandler";
window.$dwdsDevHandlerPath = "http://localhost:58521/$dwdsSseHandler";
window.$dartEntrypointPath = "main_module.bootstrap.js";
window.$requireLoader.forceLoadModule("dwds/src/injected/client");
window.$dartExtensionUri = "http://127.0.0.1:53613/$debug";
window.$dartExtensionUri = "ws://127.0.0.1:58523/$debug";
} else {
if(window.$dartMainExecuted){
......@@ -499,11 +499,12 @@ let modulePaths = {
"packages/http/src/multipart_file_stub.dart": "packages/http/src/multipart_file_stub.dart.lib",
"packages/http/src/boundary_characters.dart": "packages/http/src/boundary_characters.dart.lib",
"packages/dashboard/communityGraphNodeData.dart": "packages/dashboard/communityGraphNodeData.dart.lib",
"packages/circlegraph/tree_painter.dart": "packages/circlegraph/tree_painter.dart.lib",
"packages/circlegraph/circle/tree_painter.dart": "packages/circlegraph/circle/tree_painter.dart.lib",
"packages/vector_math/vector_math.dart": "packages/vector_math/vector_math.dart.lib",
"packages/circlegraph/tree_edge.dart": "packages/circlegraph/tree_edge.dart.lib",
"packages/circlegraph/point.dart": "packages/circlegraph/point.dart.lib",
"packages/circlegraph/graph_tooltip.dart": "packages/circlegraph/graph_tooltip.dart.lib",
"packages/circlegraph/circle/tree_edge.dart": "packages/circlegraph/circle/tree_edge.dart.lib",
"packages/circlegraph/tuple.dart": "packages/circlegraph/tuple.dart.lib",
"packages/circlegraph/circle/graph_tooltip.dart": "packages/circlegraph/circle/graph_tooltip.dart.lib",
"packages/circlegraph/data_stack.dart": "packages/circlegraph/data_stack.dart.lib",
"packages/dashboard/usernode.dart": "packages/dashboard/usernode.dart.lib",
"packages/apex_flutter_sdk/apex_flutter_sdk.dart": "packages/apex_flutter_sdk/apex_flutter_sdk.dart.lib",
"packages/apex_flutter_sdk/components/lists/chiplist.dart": "packages/apex_flutter_sdk/components/lists/chiplist.dart.lib",
......@@ -944,11 +945,12 @@ let moduleNames = {
"packages/http/src/multipart_file_stub.dart.lib": "packages/http/src/multipart_file_stub.dart",
"packages/http/src/boundary_characters.dart.lib": "packages/http/src/boundary_characters.dart",
"packages/dashboard/communityGraphNodeData.dart.lib": "packages/dashboard/communityGraphNodeData.dart",
"packages/circlegraph/tree_painter.dart.lib": "packages/circlegraph/tree_painter.dart",
"packages/circlegraph/circle/tree_painter.dart.lib": "packages/circlegraph/circle/tree_painter.dart",
"packages/vector_math/vector_math.dart.lib": "packages/vector_math/vector_math.dart",
"packages/circlegraph/tree_edge.dart.lib": "packages/circlegraph/tree_edge.dart",
"packages/circlegraph/point.dart.lib": "packages/circlegraph/point.dart",
"packages/circlegraph/graph_tooltip.dart.lib": "packages/circlegraph/graph_tooltip.dart",
"packages/circlegraph/circle/tree_edge.dart.lib": "packages/circlegraph/circle/tree_edge.dart",
"packages/circlegraph/tuple.dart.lib": "packages/circlegraph/tuple.dart",
"packages/circlegraph/circle/graph_tooltip.dart.lib": "packages/circlegraph/circle/graph_tooltip.dart",
"packages/circlegraph/data_stack.dart.lib": "packages/circlegraph/data_stack.dart",
"packages/dashboard/usernode.dart.lib": "packages/dashboard/usernode.dart",
"packages/apex_flutter_sdk/apex_flutter_sdk.dart.lib": "packages/apex_flutter_sdk/apex_flutter_sdk.dart",
"packages/apex_flutter_sdk/components/lists/chiplist.dart.lib": "packages/apex_flutter_sdk/components/lists/chiplist.dart",
......
define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/dashboard/community.dart', 'packages/dashboard/post.dart', 'packages/flutter/src/widgets/interactive_viewer.dart', 'packages/flutter/src/painting/edge_insets.dart', 'packages/circlegraph/tree_painter.dart', 'packages/circlegraph/tree_edge.dart', 'packages/dashboard/communityGraphNodeData.dart', 'packages/flutter/src/painting/box_decoration.dart', 'packages/flutter/src/painting/border_radius.dart', 'packages/flutter/src/painting/box_shadow.dart', 'packages/flutter/src/material/colors.dart', 'packages/flutter/src/rendering/paragraph.dart', 'packages/flutter/src/painting/strut_style.dart', 'packages/flutter/src/rendering/flex.dart', 'packages/flutter/src/material/icon_button.dart', 'packages/flutter/src/widgets/icon.dart', 'packages/flutter/src/material/icons.dart', 'packages/flutter/src/rendering/layer.dart', 'packages/enhanced_future_builder/src/enhanced_future_builder_base.dart', 'packages/dashboard/datagetter.dart', 'packages/flutter/src/painting/alignment.dart', 'packages/flutter/src/material/page.dart', 'packages/dashboard/user.dart', 'packages/dashboard/userGraphNodeData.dart', 'packages/dashboard/usernode.dart', 'packages/dashboard/DataGetter.dart', 'packages/dashboard/trustcolorcalculator.dart', 'packages/logger/src/log_filter.dart', 'packages/dashboard/sign_in/login_form.dart', 'packages/flutter/src/material/app.dart'], (function load__packages__dashboard__communitygraph_dart(dart_sdk, packages__flutter__src__widgets__widget_span$46dart, packages__dashboard__community$46dart, packages__dashboard__post$46dart, packages__flutter__src__widgets__interactive_viewer$46dart, packages__flutter__src__painting__edge_insets$46dart, packages__circlegraph__tree_painter$46dart, packages__circlegraph__tree_edge$46dart, packages__dashboard__communityGraphNodeData$46dart, packages__flutter__src__painting__box_decoration$46dart, packages__flutter__src__painting__border_radius$46dart, packages__flutter__src__painting__box_shadow$46dart, packages__flutter__src__material__colors$46dart, packages__flutter__src__rendering__paragraph$46dart, packages__flutter__src__painting__strut_style$46dart, packages__flutter__src__rendering__flex$46dart, packages__flutter__src__material__icon_button$46dart, packages__flutter__src__widgets__icon$46dart, packages__flutter__src__material__icons$46dart, packages__flutter__src__rendering__layer$46dart, packages__enhanced_future_builder__src__enhanced_future_builder_base$46dart, packages__dashboard__datagetter$46dart, packages__flutter__src__painting__alignment$46dart, packages__flutter__src__material__page$46dart, packages__dashboard__user$46dart, packages__dashboard__userGraphNodeData$46dart, packages__dashboard__usernode$46dart, packages__dashboard__DataGetter$46dart, packages__dashboard__trustcolorcalculator$46dart, packages__logger__src__log_filter$46dart, packages__dashboard__sign_in__login_form$46dart, packages__flutter__src__material__app$46dart) {
define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/dashboard/community.dart', 'packages/dashboard/post.dart', 'packages/flutter/src/widgets/interactive_viewer.dart', 'packages/flutter/src/painting/edge_insets.dart', 'packages/circlegraph/circle/tree_painter.dart', 'packages/circlegraph/circle/tree_edge.dart', 'packages/dashboard/communityGraphNodeData.dart', 'packages/flutter/src/painting/box_decoration.dart', 'packages/flutter/src/painting/border_radius.dart', 'packages/flutter/src/painting/box_shadow.dart', 'packages/flutter/src/material/colors.dart', 'packages/flutter/src/rendering/paragraph.dart', 'packages/flutter/src/painting/strut_style.dart', 'packages/flutter/src/rendering/flex.dart', 'packages/flutter/src/material/icon_button.dart', 'packages/flutter/src/widgets/icon.dart', 'packages/flutter/src/material/icons.dart', 'packages/flutter/src/rendering/layer.dart', 'packages/enhanced_future_builder/src/enhanced_future_builder_base.dart', 'packages/dashboard/datagetter.dart', 'packages/flutter/src/painting/alignment.dart', 'packages/flutter/src/material/page.dart', 'packages/dashboard/user.dart', 'packages/dashboard/userGraphNodeData.dart', 'packages/dashboard/usernode.dart', 'packages/dashboard/DataGetter.dart', 'packages/dashboard/trustcolorcalculator.dart', 'packages/logger/src/log_filter.dart', 'packages/dashboard/sign_in/login_form.dart', 'packages/flutter/src/material/app.dart'], (function load__packages__dashboard__communitygraph_dart(dart_sdk, packages__flutter__src__widgets__widget_span$46dart, packages__dashboard__community$46dart, packages__dashboard__post$46dart, packages__flutter__src__widgets__interactive_viewer$46dart, packages__flutter__src__painting__edge_insets$46dart, packages__circlegraph__circle__tree_painter$46dart, packages__circlegraph__circle__tree_edge$46dart, packages__dashboard__communityGraphNodeData$46dart, packages__flutter__src__painting__box_decoration$46dart, packages__flutter__src__painting__border_radius$46dart, packages__flutter__src__painting__box_shadow$46dart, packages__flutter__src__material__colors$46dart, packages__flutter__src__rendering__paragraph$46dart, packages__flutter__src__painting__strut_style$46dart, packages__flutter__src__rendering__flex$46dart, packages__flutter__src__material__icon_button$46dart, packages__flutter__src__widgets__icon$46dart, packages__flutter__src__material__icons$46dart, packages__flutter__src__rendering__layer$46dart, packages__enhanced_future_builder__src__enhanced_future_builder_base$46dart, packages__dashboard__datagetter$46dart, packages__flutter__src__painting__alignment$46dart, packages__flutter__src__material__page$46dart, packages__dashboard__user$46dart, packages__dashboard__userGraphNodeData$46dart, packages__dashboard__usernode$46dart, packages__dashboard__DataGetter$46dart, packages__dashboard__trustcolorcalculator$46dart, packages__logger__src__log_filter$46dart, packages__dashboard__sign_in__login_form$46dart, packages__flutter__src__material__app$46dart) {
'use strict';
const core = dart_sdk.core;
const _interceptors = dart_sdk._interceptors;
......@@ -18,8 +18,9 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
const post = packages__dashboard__post$46dart.post;
const interactive_viewer = packages__flutter__src__widgets__interactive_viewer$46dart.src__widgets__interactive_viewer;
const edge_insets = packages__flutter__src__painting__edge_insets$46dart.src__painting__edge_insets;
const circlegraph = packages__circlegraph__tree_painter$46dart.circlegraph;
const tree_node_data = packages__circlegraph__tree_edge$46dart.tree_node_data;
const circlegraph = packages__circlegraph__circle__tree_painter$46dart.circlegraph;
const bubblegraph = packages__circlegraph__circle__tree_painter$46dart.bubble__bubblegraph;
const tree_node_data = packages__circlegraph__circle__tree_edge$46dart.circle__tree_node_data;
const communityGraphNodeData = packages__dashboard__communityGraphNodeData$46dart.communityGraphNodeData;
const box_decoration = packages__flutter__src__painting__box_decoration$46dart.src__painting__box_decoration;
const border_radius = packages__flutter__src__painting__border_radius$46dart.src__painting__border_radius;
......@@ -92,6 +93,8 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
BuildContextLToUserGraphViewPageL: () => (T.BuildContextLToUserGraphViewPageL = dart.constFn(dart.fnType(T.UserGraphViewPageL(), [T.BuildContextL()])))(),
CommunityGraphViewPageL: () => (T.CommunityGraphViewPageL = dart.constFn(dart.legacy(communitygraph.CommunityGraphViewPage)))(),
BuildContextLToCommunityGraphViewPageL: () => (T.BuildContextLToCommunityGraphViewPageL = dart.constFn(dart.fnType(T.CommunityGraphViewPageL(), [T.BuildContextL()])))(),
CircleGraphL: () => (T.CircleGraphL = dart.constFn(dart.legacy(circlegraph.CircleGraph)))(),
JSArrayOfCircleGraphL: () => (T.JSArrayOfCircleGraphL = dart.constFn(_interceptors.JSArray$(T.CircleGraphL())))(),
ListOfCommunityL: () => (T.ListOfCommunityL = dart.constFn(core.List$(T.CommunityL())))(),
ListLOfCommunityL: () => (T.ListLOfCommunityL = dart.constFn(dart.legacy(T.ListOfCommunityL())))(),
EnhancedFutureBuilderOfListLOfCommunityL: () => (T.EnhancedFutureBuilderOfListLOfCommunityL = dart.constFn(enhanced_future_builder_base.EnhancedFutureBuilder$(T.ListLOfCommunityL())))(),
......@@ -2288,7 +2291,7 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
return C[265] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "children",
[_Location_name]: "circleGraphs",
[_Location_column]: 11,
[_Location_line]: 40,
[_Location_file]: null
......@@ -3063,7 +3066,7 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
nodes[$add](this.community.posts[$_get](i));
}
nodes[$add](new post.Post.new("...", "", "", this.community.name, this.community.trust, 69));
return new container.Container.new({width: 2000.0, height: 1000.0, child: new interactive_viewer.InteractiveViewer.new({constrained: true, boundaryMargin: new edge_insets.EdgeInsets.all(100.0), minScale: 0.01, maxScale: 5.6, child: new circlegraph.CircleTree.new({root: this[_getCommunityNode](this.community), children: (() => {
return new container.Container.new({width: 2000.0, height: 1000.0, child: new interactive_viewer.InteractiveViewer.new({constrained: true, boundaryMargin: new edge_insets.EdgeInsets.all(100.0), minScale: 0.01, maxScale: 5.6, child: new circlegraph.CircleGraph.new({root: this[_getCommunityNode](this.community), children: (() => {
let t0 = T.JSArrayOfTreeNodeDataL().of([]);
for (let node of nodes)
t0[$add](this[_getPostNode](T.PostL().as(node)));
......@@ -3176,7 +3179,7 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
for (let i = dart.notNull(this.pageNr) * dart.notNull(this.nrPerPage); i < dart.notNull(this.pageNr) * dart.notNull(this.nrPerPage) + dart.notNull(this.nrPerPage) && i < dart.notNull(this.user.posts[$length]); i = i + 1) {
nodes[$add](this.user.posts[$_get](i));
}
return new container.Container.new({child: new interactive_viewer.InteractiveViewer.new({constrained: true, boundaryMargin: new edge_insets.EdgeInsets.all(100.0), minScale: 0.01, maxScale: 5.6, child: new circlegraph.CircleTree.new({root: this[_getUserNode](this.user), children: (() => {
return new container.Container.new({child: new interactive_viewer.InteractiveViewer.new({constrained: true, boundaryMargin: new edge_insets.EdgeInsets.all(100.0), minScale: 0.01, maxScale: 5.6, child: new circlegraph.CircleGraph.new({root: this[_getUserNode](this.user), children: (() => {
let t1 = T.JSArrayOfTreeNodeDataL().of([]);
for (let post of nodes)
t1[$add](this[_getPostNode$](post));
......@@ -3381,17 +3384,17 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
communitymetagraph._CommunityMetaGraphState = class _CommunityMetaGraphState extends framework.State$(dart.legacy(communitymetagraph.CommunityMetaGraph)) {
build(context) {
new logger.Logger.new().i(dart.toString(this.communities));
return new container.Container.new({width: 2000.0, height: 1000.0, child: new interactive_viewer.InteractiveViewer.new({constrained: true, boundaryMargin: new edge_insets.EdgeInsets.all(100.0), minScale: 0.01, maxScale: 5.6, child: new basic.Wrap.new({children: (() => {
let t2 = T.JSArrayOfWidgetL().of([]);
for (let community of this.communities)
t2[$add](new circlegraph.CircleTree.new({root: this[_getCommunityNode$](community), children: (() => {
let t3 = T.JSArrayOfTreeNodeDataL().of([]);
for (let post of community.posts)
t3[$add](this[_getPostNode$0](post));
return t3;
})(), $creationLocationd_0dea112b090073317d4: C[259] || CT.C259}));
return t2;
})(), $creationLocationd_0dea112b090073317d4: C[263] || CT.C263}), $creationLocationd_0dea112b090073317d4: C[266] || CT.C266}), $creationLocationd_0dea112b090073317d4: C[273] || CT.C273});
return new container.Container.new({width: 2000.0, height: 1000.0, child: new interactive_viewer.InteractiveViewer.new({constrained: true, boundaryMargin: new edge_insets.EdgeInsets.all(100.0), minScale: 0.01, maxScale: 5.6, child: new bubblegraph.BubbleGraph.new((() => {
let t2 = T.JSArrayOfCircleGraphL().of([]);
for (let community of this.communities)
t2[$add](new circlegraph.CircleGraph.new({root: this[_getCommunityNode$](community), children: (() => {
let t3 = T.JSArrayOfTreeNodeDataL().of([]);
for (let post of community.posts)
t3[$add](this[_getPostNode$0](post));
return t3;
})(), $creationLocationd_0dea112b090073317d4: C[259] || CT.C259}));
return t2;
})(), {$creationLocationd_0dea112b090073317d4: C[263] || CT.C263}), $creationLocationd_0dea112b090073317d4: C[266] || CT.C266}), $creationLocationd_0dea112b090073317d4: C[273] || CT.C273});
}
[_getCommunityNode$](community) {
let data = new communityGraphNodeData.CommunityGraphNodeData.fromCommunity(community);
......@@ -3520,7 +3523,7 @@ define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/d
"package:dashboard/sign_in/loginpage.dart": loginpage,
"package:dashboard/main.dart": main
}, {
}, '{"version":3,"sourceRoot":"","sources":["communitygraph.dart","usergraph.dart","postnode.dart","communitymetagraph.dart","sign_in/loginpage.dart","main.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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9B,iBAA8B,2DAAS,IAAI;AAElE,YAAO,6DACE,0BAAS,IAAI,sEACd,IAAI;IAEd;2BAEwC;;AACtC,YAAO,kDACI,sCACiB,+BAAI,mBACZ,oDACiB,wCAAS,iBACzB,4BACT,sCAC8B,KAAZ,AAAM,0BAAC,MAAD,aAAgB,0CACtB,kBAGf,cACA,6BACK,yBACR,+BACS,kBACL,AAAU,SAAD,kBACc,wCAChB,0CACoB,2BAAoB,iJAGnD,kBAC0B,AAAW,CAAlB,aAAhB,AAAU,SAAD,UAAS,oBAAkB,aAC9B,0CACoB,2BACK,8DACxB,AAAU,SAAD,6FAGgB;IAEjD;;8DA7E8B;IAD1B,qBAAgB;IACU;AAA9B;;EAA0C;;;;;;;;;;;;;;;;;UAiFhB;AACxB,YAAO,6CACqB,2BAKlB,sCACgB,+BAAI,oBACI,wCACrB,oCACsB,iCACjB,yBACR,gEACqB,8DACG,iBACZ,QAAC,eAAgB,uEAAmB,WAAW,iHAC5C,wCACU,mCACd,kBAAK;IAM5B;;;;;;EACF;;;;;;;;;;AC1HmC;IAAiB;;;;AAFlD;;EAAW;;;;;;;;;;UAQe;AACxB,YAAO,kCACC,6BACG,uCAAU,mBAAU;IAGjC;aAEqB,UAAiB;AAAzB;AAC+B,QAA1C,MAAa,qBAAQ,gCAAkB;AAIrC,QAFF,cAAS;AACyB,UAAhC,eAAS;;MAwBb;;;;IAtCO;;;EAuCT;;;;;;;;;;;;;;UCzC4B;AAAY,4CAC1B,8CAAuB;IAC9B;;;;;;EACP;;;;;;;;;AARiB,IAAf,eAAO;EACT","file":"../../../../../../../../packages/dashboard/communitygraph.dart.lib.js"}');
}, '{"version":3,"sourceRoot":"","sources":["communitygraph.dart","usergraph.dart","postnode.dart","communitymetagraph.dart","sign_in/loginpage.dart","main.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;AC1HmC;IAAiB;;;;AAFlD;;EAAW;;;;;;;;;;UAQe;AACxB,YAAO,kCACC,6BACG,uCAAU,mBAAU;IAGjC;aAEqB,UAAiB;AAAzB;AAC+B,QAA1C,MAAa,qBAAQ,gCAAkB;AAIrC,QAFF,cAAS;AACyB,UAAhC,eAAS;;MAwBb;;;;IAtCO;;;EAuCT;;;;;;;;;;;;;;UCzC4B;AAAY,4CAC1B,8CAAuB;IAC9B;;;;;;EACP;;;;;;;;;AARiB,IAAf,eAAO;EACT","file":"../../../../../../../../packages/dashboard/communitygraph.dart.lib.js"}');
// Exports:
return {
communitygraph: communitygraph,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14894,7 +14894,7 @@ define(['dart_sdk', 'packages/flutter/src/painting/basic_types.dart', 'packages/
isStructuredErrorsEnabled() {
let enabled = false;
if (!dart.test(dart.fn(() => {
enabled = false;
enabled = true;
return true;
}, T$.VoidTobool())())) dart.assertFailed(null, I[2], 963, 12, "() {\r\n // TODO(kenz): add support for structured errors on the web.\r\n enabled = const bool.fromEnvironment('flutter.inspector.structuredErrors', defaultValue: !kIsWeb);\r\n return true;\r\n }()");
return enabled;
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -45,7 +45,7 @@
},
{
"name": "circlegraph",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.2",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.5",
"packageUri": "lib/",
"languageVersion": "2.7"
},
......@@ -272,7 +272,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-03-09T11:18:11.221906Z",
"generated": "2021-03-09T14:12:32.242847Z",
"generator": "pub",
"generatorVersion": "2.12.0-259.9.beta"
}
......@@ -32,8 +32,8 @@ file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.p
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/
circlegraph
2.7
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.2/
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.2/lib/
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.5/
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.5/lib/
clock
2.12
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/
......
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Users\\\\Luca\\\\Documents\\\\flutter\\\\flutter_windows_1.22.5-stable\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Users\\\\Luca\\\\Documents\\\\flutter\\\\flutter_windows_1.22.5-stable\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-03-09 14:06:47.955506","version":"1.26.0-17.5.pre"}
\ No newline at end of file
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Users\\\\Luca\\\\Documents\\\\flutter\\\\flutter_windows_1.22.5-stable\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Users\\\\Luca\\\\Documents\\\\flutter\\\\flutter_windows_1.22.5-stable\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-03-09 16:03:59.874345","version":"1.26.0-17.5.pre"}
\ No newline at end of file
......@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2021-03-09 12:18:11.189928.
# Generated by pub on 2021-03-09 15:12:32.200872.
apex_flutter_sdk:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/apex_flutter_sdk-1.1.1+1/lib/
archive:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13/lib/
args:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0/lib/
......@@ -11,7 +11,7 @@ async:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flut
boolean_selector:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/
charcode:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/
circlegraph:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.2/lib/
circlegraph:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.5/lib/
clock:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/
convert:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
......
import 'package:flutter/cupertino.dart';
import 'community.dart';
import 'post.dart';
......
import 'package:circlegraph/circlegraph.dart';
import 'package:dashboard/datagetter.dart';
import 'package:dashboard/querying/datagetter.dart';
import 'package:enhanced_future_builder/enhanced_future_builder.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'community.dart';
import 'communityGraphNodeData.dart';
import 'datagetter.dart';
import 'post.dart';
import '../data/community.dart';
import '../data/communityGraphNodeData.dart';
import '../querying/datagetter.dart';
import '../data/post.dart';
import 'postnode.dart';
import 'shared.dart';
import 'postnode.dart';
import 'communitymetagraph.dart';
......@@ -24,7 +23,7 @@ class _CommunityGraphState extends State<CommunityGraph> {
_CommunityGraphState(this.community);
final Community community;
int nrPerPage = 15;
int nrPerPage = 10;
int pageNr = 0;
build(BuildContext context) {
......@@ -47,7 +46,7 @@ class _CommunityGraphState extends State<CommunityGraph> {
boundaryMargin: EdgeInsets.all(100),
minScale: 0.01,
maxScale: 5.6,
child: CircleTree(
child: CircleGraph(
root: _getCommunityNode(community),
children: [for (var node in nodes) _getPostNode(node)],
),
......@@ -62,47 +61,38 @@ class _CommunityGraphState extends State<CommunityGraph> {
return TreeNodeData<CommunityGraphNodeData>(
child: getCommunityNodeWidget(community.name, community.trust),
data: data,
width: 150,
);
}
TreeNodeData<CommunityGraphNodeData> _getPostNode(Post post) {
CommunityGraphNodeData data = CommunityGraphNodeData.fromPost(post);
PostNode postNode = PostNode(post);
return TreeNodeData<CommunityGraphNodeData>(
child: PostNode(post),
child: postNode,
data: data,
width: 250,
);
}
Widget getCommunityNodeWidget(String name, double trustvalue) {
return Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
boxShadow: [
BoxShadow(
color: Colors.orange[400] ?? Colors.orange, spreadRadius: 1),
],
return Row(
children: [
Expanded(
child: Text(
name,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
),
),
width: 1000,
child: Row(
children: [
Expanded(
child: Text(
name,
overflow: TextOverflow.ellipsis,
style:
TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
),
),
Text(
(trustvalue * 100).toString() + "%",
style:
TextStyle(fontWeight: FontWeight.bold, color: Colors.green),
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
));
Text(
(trustvalue * 100).toString() + "%",
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.green),
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
);
}
}
......
import 'package:circlegraph/circlegraph.dart';
import 'package:dashboard/communityGraphNodeData.dart';
import 'package:dashboard/datagetter.dart';
import 'package:dashboard/postnode.dart';
import 'package:dashboard/shared.dart';
import 'package:dashboard/data/communityGraphNodeData.dart';
import 'package:dashboard/querying/datagetter.dart';
import 'package:dashboard/graphing/postnode.dart';
import 'package:flutter/material.dart';
import 'package:logger/logger.dart';
import 'community.dart';
import 'post.dart';
import '../data/community.dart';
import '../data/post.dart';
import 'postnode.dart';
import 'shared.dart';
import 'trustcolorcalculator.dart';
import 'package:enhanced_future_builder/enhanced_future_builder.dart';
......@@ -36,10 +34,10 @@ class _CommunityMetaGraphState extends State<CommunityMetaGraph> {
boundaryMargin: EdgeInsets.all(100),
minScale: 0.01,
maxScale: 5.6,
child: Wrap(
children: [
child: BubbleGraph(
[
for (Community community in communities)
CircleTree(
CircleGraph(
root: _getCommunityNode(community),
children: [
for (Post post in community.posts) _getPostNode(post)
......@@ -55,7 +53,11 @@ class _CommunityMetaGraphState extends State<CommunityMetaGraph> {
CommunityGraphNodeData data =
CommunityGraphNodeData.fromCommunity(community);
return TreeNodeData(child: getCommunityNodeWidget(community), data: data);
return TreeNodeData(
child: getCommunityNodeWidget(community),
data: data,
width: 500,
);
}
TreeNodeData<CommunityGraphNodeData> _getPostNode(Post post) {
......@@ -64,42 +66,30 @@ class _CommunityMetaGraphState extends State<CommunityMetaGraph> {
return TreeNodeData<CommunityGraphNodeData>(
child: PostNode(post),
data: data,
width: 500,
);
}
Widget getCommunityNodeWidget(Community community) {
return GestureDetector(
child: Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
boxShadow: [
BoxShadow(
color: Colors.orange[400] ?? Colors.orange,
spreadRadius: 1),
],
),
width: 200,
child: Row(
children: [
Expanded(
child: Text(
community.name,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.bold, color: Colors.black),
),
),
Text(
(community.trust * 100).toString() + "%",
style: TextStyle(
fontWeight: FontWeight.bold,
color: TrustColorCalculator.calculateTrustColor(
community.trust)),
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
)));
child: Row(
children: [
Expanded(
child: Text(
community.name,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
),
),
Text(
(community.trust * 100).toString() + "%",
style: TextStyle(
fontWeight: FontWeight.bold,
color: TrustColorCalculator.calculateTrustColor(community.trust)),
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
));
}
}
......
......@@ -17,34 +17,23 @@ class PostNode extends StatelessWidget {
trustColor = TrustColorCalculator.calculateTrustColor(post.trust);
return GestureDetector(
onTap: () => redirectToPost(context),
child: Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
boxShadow: [
BoxShadow(
color: Colors.grey[300] ?? Colors.grey, spreadRadius: 1),
],
child: Row(
children: [
Expanded(
child: Text(
post.title != "" ? post.title : post.content,
overflow: TextOverflow.ellipsis,
style:
TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
),
),
width: 1000,
child: Row(
children: [
Expanded(
child: Text(
post.title != "" ? post.title : post.content,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.bold, color: Colors.black),
),
),
Text(
(post.trust * 100).toString() + "%",
style:
TextStyle(fontWeight: FontWeight.bold, color: trustColor),
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
)),
Text(
(post.trust * 100).toString() + "%",
style: TextStyle(fontWeight: FontWeight.bold, color: trustColor),
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
),
);
}
......
......@@ -4,11 +4,11 @@ import 'package:enhanced_future_builder/enhanced_future_builder.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'post.dart';
import 'userGraphNodeData.dart';
import '../data/post.dart';
import '../data/userGraphNodeData.dart';
import 'usernode.dart';
import 'postnode.dart';
import 'user.dart';
import '../data/user.dart';
class UserGraph extends StatefulWidget {
UserGraph(this.user);
......@@ -41,7 +41,7 @@ class _UserGraphState extends State<UserGraph> {
boundaryMargin: EdgeInsets.all(100),
minScale: 0.01,
maxScale: 5.6,
child: CircleTree(
child: CircleGraph(
root: _getUserNode(user),
children: [for (Post post in nodes) _getPostNode(post)],
)),
......@@ -51,7 +51,10 @@ class _UserGraphState extends State<UserGraph> {
TreeNodeData<UserGraphNodeData> _getUserNode(User user) {
UserGraphNodeData data = UserGraphNodeData.fromUser(user);
return TreeNodeData(child: UserNode(user.trustScores), data: data);
return TreeNodeData(
child: UserNode(user.trustScores),
data: data,
backgroundColor: Colors.transparent);
}
TreeNodeData<UserGraphNodeData> _getPostNode(Post post) {
......@@ -73,9 +76,6 @@ class UserGraphViewPage extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Wrap(
children: [],
),
EnhancedFutureBuilder<User>(
future: DataGetter.getUser(username),
// future: DataGetter.getJson(
......
import 'package:flutter/material.dart';
import 'package:circlegraph/circlegraph.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int numberOfChildren = 5;
void onAdd() {
setState(() {
numberOfChildren += 1;
});
}
///
/// generate a simple node that holds an integer with a text inside that
/// contains its index
///
TreeNodeData _nodeWithIndex(int i) {
return TreeNodeData<int>(
child: Text(
"child $i",
style: TextStyle(color: color3),
),
data: i,
onNodeClick: _onNodeClick,
color: color2);
}
///
/// Build the tooltip based on the node that is currently hovered
///
Widget buildTooltip(TreeNodeData node, int data) {
return Container(
padding: EdgeInsets.all(10),
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(10),
),
color: color4,
),
child: Text(
"Hovering over node $data",
),
);
}
///
/// callback when a node is clicked
///
void _onNodeClick(TreeNodeData node, int data) {
print("clicked on node $data");
}
Color get color1 => Color.fromRGBO(154, 212, 214, 1); // powder blue
Color get color2 => Color.fromRGBO(139, 30, 63, 1); // claret (red-ish)
Color get color3 =>
Color.fromRGBO(240, 201, 135, 1); // gold crayola (yellow-ish)
Color get color4 => Color.fromRGBO(71, 170, 174, 1); // verdigris
Color get color5 => Color.fromRGBO(16, 37, 66, 1); // oxford blue
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: FloatingActionButton(
child: Icon(Icons.add),
onPressed: onAdd,
),
body: Center(
child: Container(
padding: EdgeInsets.all(160),
decoration: BoxDecoration(
color: color1,
shape: BoxShape.circle,
),
child: CircleTree(
root: _nodeWithIndex(0),
children: [
for (int i = 0; i < numberOfChildren; i++) _nodeWithIndex(i + 1),
],
tooltipBuilder: buildTooltip,
),
),
),
);
}
}
......@@ -4,9 +4,9 @@ import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:logger/logger.dart';
import 'community.dart';
import 'post.dart';
import 'user.dart';
import 'data/community.dart';
import 'data/post.dart';
import 'data/user.dart';
class DataGetter {
static Future<Map<String, dynamic>> getJson(String url,
......
export 'package:graphview/GraphView.dart';
import 'package:dashboard/communitymetagraph.dart';
import 'package:dashboard/credentials.dart';
import 'package:dashboard/datagetter.dart';
import 'package:dashboard/graphing/communitymetagraph.dart';
import 'package:dashboard/sign_in/credentials.dart';
import 'package:dashboard/querying/datagetter.dart';
import 'package:dashboard/sign_in/login_form.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
......
......@@ -56,7 +56,7 @@ packages:
name: circlegraph
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2"
version: "0.0.5"
clock:
dependency: transitive
description:
......
......@@ -16,7 +16,7 @@ dependencies:
apex_flutter_sdk: ^1.1.1+1
enhanced_future_builder: ^1.0.3
http: ^0.12.2
circlegraph: ^0.0.2
circlegraph: ^0.0.5
cupertino_icons: ^1.0.1
logger: ^0.9.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment