Skip to content
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

Support for voc #14

Merged
merged 6 commits into from
Aug 13, 2019
Merged

Support for voc #14

merged 6 commits into from
Aug 13, 2019

Conversation

SkalskiP
Copy link
Owner

No description provided.

@SkalskiP SkalskiP requested a review from rootkowsky August 12, 2019 20:04
@SkalskiP SkalskiP added the new-feature New feature or request label Aug 12, 2019

export class ExportUtil {
public static getProjectName(): string {
return store.getState().editor.projectName
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ja bym czegoś takiego użył:
https://www.npmjs.com/package/xml-escape

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i w sumie fajnie że to robisz... ale imho do reducera powinno pójść już elegancko wyESCAPEowana wartość... czyli to sanitizowanie powinno być na onChange albo onBlur

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

albo przy wykonywaniu akcji

@@ -0,0 +1,14 @@
import {store} from "..";

export class ExportUtil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w Reduxie jest taka konwencja, że takie obiekty jak ten, nazywają się SELECTORAMI,
czyli w Twoim przypadku byłby to jakiś selector np: EditorSelector.ts (ponieważ pobierasz dane z reducera "editor")
i ma w sobie taką samą metodę jak teraz masz... czyli zmień tylko nazwę na "EditorSelector.ts"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generalnie poczytaj o selektorach

@SkalskiP SkalskiP merged commit 49d8539 into develop Aug 13, 2019
@SkalskiP SkalskiP deleted the support_for_voc branch August 13, 2019 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants