fieldeditors's People
fieldeditors's Issues
The "time" field needs a new filter
Currently, it uses the built in date filter, but we need to store a time without an associated date. The raw data will be seconds after midnight and we will need to convert this into the time of the day.
{{ 21600 | time }} // 6:00am
0 = 12:00 am
60 = 12:01 am
...
21600 = 6:00 am
...
86399 = 11:59 pm
86400 = 12:00 am
Create editable input boxes
Regular non-popup inputs for: year, time, length, percent, integer, decimal, currency, phone number, email address, isbn. Sanitize input and pass into a corresponding filter.
Currency filter needs wrapper
The built in currency filter needs a wrapper so that already correctly filtered strings don't get erased.
{{ "12.34" | currency }} // $12.34
{{ "$12.34" | currency }} // $12.34
The second scenario is currently failing
Create star filter
URL needs to work with or without leading http://
www.apple.com
http://www.apple.com
Both should turn into URLs
Update angular
It looks like angular has been updated to 1.0.2. Need to update and validate that everything still works in this project as well.
length filter refinements
The length filter needs a little refinement to properly format the following inputs
{{ "23h" | length }} //23 hrs
{{ "90min" | length }} //1hr 30mins
{{ "1hrs 90mins" | length }} //2hrs 30mins
Write unit tests to verify filters
Check for common valid inputs, edge cases and invalid inputs.
Use jstestdriver
isbn filter throws error on undefined input
Date filters need to handle invalid inputs
We need to write a wrapper around the following angular filters (date, date+time, year) so that an invalid input displays empty string instead of undefined NaN.
{{ 'foo' | date }}
Perhaps we could do something like this with chained filters (not sure if this is possible)
{{ 'foo' | isValidDate | date }}
Percent filter does not verify input is a number
It will format a string as "foo%". It if cannot parse it as an integer is should return empty string.
Length filter needs to handle decimal hours
For example "1.5h" needs to be converted into "1hr 30min"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.