-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move all TODOs and FIXMEs to GitHub issues #124
Conversation
priv/static/assets/js/arizona.js
Outdated
@@ -34,11 +34,9 @@ globalThis["arizona"] = (() => { | |||
const subscribers = new Map() | |||
const unsubscribers = new Map() | |||
|
|||
// @todo Subscribe to global events. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
priv/static/assets/js/arizona.js
Outdated
function subscribe(eventName, callback, opts = {}) { | ||
let eventSubs = subscribers.get(eventName) | ||
if (!eventSubs) eventSubs = new Map() | ||
// @todo Improve id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -31,7 +31,6 @@ HTML support. | |||
%% API funtions. | |||
%% -------------------------------------------------------------------- | |||
|
|||
% TODO: Do this really safe for HTML. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -42,7 +42,6 @@ send(Event, Payload) -> | |||
%% Internal funtions. | |||
%% -------------------------------------------------------------------- | |||
|
|||
% TODO: Real safe JS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -96,7 +96,6 @@ handle_info({_Pid, {fs, file_event}, {File, Events}}, | |||
[modified, closed] -> | |||
{noreply, State#state{files = Files#{File => {erl, modified}}}}; | |||
_ -> | |||
% TODO: Act on created, renamed, deleted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% TODO: Rename 'arz-id' to 'arz-sid' (statefull id), | ||
% and provide a 'arz-tid' (tag id) to each tag. | ||
% I think this can improve changes patch, | ||
% because just the most close tag could be rendered | ||
% instead of the entirely block/tree. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -285,7 +274,6 @@ block_struct(Block, P, I, State) -> | |||
vars => vars_group(vars(ExprVars, Id)) | |||
}. | |||
|
|||
% TODO: Change to binary_to_existing_atom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -311,7 +299,6 @@ find_first_tag(_) -> | |||
is_tag(Name) -> | |||
not lists:member(Name, [<<"!DOCTYPE">>, <<"!doctype">>, <<"?xml">>]). | |||
|
|||
% TODO: Use binary_to_existing_atom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% FIXME: This implementation wont work, because it } | ||
{% needs to be compiled in tokens. } | ||
{% The 'merl:tsubst' should be used to fix this. } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -94,7 +94,6 @@ do_parse_tag([tag_close | T0], Props0, Macros) -> | |||
true -> | |||
Props = case OpenName =:= <<"head">> of | |||
true -> | |||
% TODO: Do not reverse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#123 / 1
@@ -163,12 +162,10 @@ parse_attr(K, {expr, ExprStr}, Macros) -> | |||
parse_attr(K, {text, Text}, _Macros) -> | |||
do_parse_attr(K, {text, Text}). | |||
|
|||
% TODO: Directive keys to atom using binary_to_existing_atom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% TODO: Implement the :case directive: | ||
% """ | ||
% {% The directive should be a valid Erlang syntax, like: } | ||
% {:case _@foo of | ||
% foo -> | ||
% """ | ||
% {% Expressions will be compiled into a tree... } | ||
% <div>foo</div> | ||
% """; | ||
% Bar -> | ||
% """ | ||
% {% and should be able to eval variables. } | ||
% <div>{Bar}</div> | ||
% """ | ||
% end} | ||
% """. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string(Str) when is_binary(Str) -> | ||
% TODO: Location. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#123 / 2
% FIXME: If closing_tag we should go to 'scan' | ||
% instead of 'scan_attr_key'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -71,7 +71,6 @@ websocket_handle({text, Msg}, #{sockets := Sockets} = State) -> | |||
{Target, Event, Payload} = decode_msg(Msg), | |||
Socket0 = maps:get(Target, Sockets), | |||
View = maps:get(view, Socket0), | |||
% TODO: {reply, Msg, Socket} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7a436c2
to
2969d7f
Compare
@@ -35,11 +35,9 @@ globalThis["arizona"] = (() => { | |||
const subscribers = new Map(); | |||
const unsubscribers = new Map(); | |||
|
|||
// @todo Subscribe to global events. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function subscribe(eventName, callback, opts = {}) { | ||
let eventSubs = subscribers.get(eventName); | ||
if (!eventSubs) eventSubs = new Map(); | ||
// @todo Improve id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna un-resolve all comments since this is now merge. It'll make it easier to come back here for backtracking what originated an issue. Edit: ... and then we can resolve them as we go along, though that's not a strict requirement. |
Description
Closes #63.
Further considerations
Self-review will show references from each change to a created issue.