You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Future<List<Board>> getMyBoards(User me) async {
if (me._myBoards ==null) {
me._myBoards = [];
/// FIXME: not possible with current node system. /// make new type of Node getChildren by Reply, Like, Bookmark
}
returnthis._myBoards;
}
ui\view\profile\profile_view.dart
widget.isMine &&false// FIXME: not possible with current node system.?PadongFutureBuilder(
future:Session.user.getMyBoards(Session.user),
builder: (boards) =>BoardList(boards, icons: [
Icons.mode_comment_rounded,
Icons.favorite_rounded,
Icons.bookmark_rounded
]))
:SizedBox.shrink()
TODO
core\search_engine.dart
staticFuture<List<TitleNode>> search(String type, String searching) async {
List<String> keywords =
searching.split(' ').map((keyword) => keyword.toLowerCase()).toList();
if (type =='like'|| type =='bookmark')
return [
// TODO: get Post by like and bookmark
];
elseif (type =='chat') type ='chatroom';
// TODO: memo & questionList<TitleNode> nodes =awaitPadongFB.getDocsByRule(type, limit:30).then(
(docs) =><TitleNode>[
...docs.map((doc) =>Nodes.generateNode(type, doc.id, doc.data()))
]);
core\node\chat\chat_room.dart
Future<int> countUnread(User me) async {
// TODO: based on Participant's modifiedAt, message's createdAtreturn0;
}
core/node/cover/item.dart
voidrevertWikiToThisItem() {
// TODO: revert Wiki to this Item// check current Item & User authority
}
classServiceextendsEvaluation {
SERVICE serviceCode;
Service();
Service.fromMap(String id, Map snapshot)
:this.serviceCode =parseSERVICE(snapshot['serviceCode']),
super.fromMap(id, snapshot);
@overridegenerateFromMap(String id, Map snapshot) =>Service.fromMap(id, snapshot);
@overrideMap<String, dynamic> toJson() {
return {
...super.toJson(),
'serviceCode':serviceToString(this.serviceCode),
};
}
// TODO: when CRUD Service, update building's serviceCheckBit// One building can serve same type of services, not only one.
}
voidcreatePost(Map data) async {
// TODO: if user is owner of this board, ask isNotice// with dialogawaitPost.fromMap('', {
...data,
'parentId':this.board.id,
'pip':pipToString(this.board.pip),
'anonymity':TipInfo.isAnonym,
'isNotice':false,
}).create();
}
voidcreateQuestion(Map data) async {
// TODO: if user is owner of this board, ask isNotice// with dialogawaitQuestion.fromMap('', {
...data,
'parentId':this.lecture.id,
'pip':pipToString(this.lecture.pip),
'anonymity':TipInfo.isAnonym,
'isNotice':false,
}).create();
}
voidcreateMemo(Map data) async {
// TODO: if user is owner of this board, ask isNotice// with dialogawaitMemo.fromMap('', {
...data,
'parentId':this.event.id,
'pip':pipToString(this.event.pip),
'anonymity':TipInfo.isAnonym,
'isNotice':false,
}).create();
}
Widgetbuild(BuildContext context) {
returnAppBar(
// when dark mode, using dark
brightness:Brightness.light,
backgroundColor:Colors.transparent,
elevation:0,
leading:InkWell(
onTap: () {
// TODO: routing to Padong Main and change current univ
},
ui\widget\card\image_card.dart
Widgetbuild(BuildContext context) {
returnInkWell(
onTap: () =>PadongRouter.routeURL('/${this.node.type}?id=${this.node.id}', this.node),
child:Card(
shape:RoundedRectangleBorder(
borderRadius:BorderRadius.circular(5.0),
),
elevation:1.5,
child:Stack(children: [
Container(
width:MediaQuery.of(context).size.width -AppTheme.horizontalPadding *2,
height:120,
padding:EdgeInsets.all(10),
// TODO: get image from wiki
//Todo: Have to optimize with https://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Reduce_the_problem_set//Todo: Have to study google/diff-match-patch's Algorithm ( Myer's diff algorithm, https://neil.fraser.name/writing/diff/ )List<Diff> diffLine(String prev, String next) {
List<Diff> result = [];
prev ='prev\n'+ prev ;
next ='next\n'+ next ;
List<String> p =toLinuxNewLine(prev).split('\n');
List<String> n =toLinuxNewLine(next).split('\n');
...
}
The text was updated successfully, but these errors were encountered:
FIXME
TODO
The text was updated successfully, but these errors were encountered: