This repository was archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Added support for custom delimiter in team import dialog #259
Open
ThinkRedstone
wants to merge
3
commits into
FirstLegoLeague:master
Choose a base branch
from
ThinkRedstone:custom-import-delim
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,11 @@ <h1> | |
| <input type="text" ng-model="importNameColumn" size="3"> | ||
| ({{importNameExample}}) | ||
| </p> | ||
| <p> | ||
| Use custom delimiter? (Default is tab, the delimiter used when pasting from excel) <br/> | ||
| <input type="checkbox" ng-model="useCustomDelimiter"> | ||
| <input type="text" ng-model="delimiter"> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This box should be disabled if |
||
| </p> | ||
|
|
||
| <table> | ||
| <tr ng-repeat="line in importLines"> | ||
|
|
@@ -186,20 +191,20 @@ <h1> | |
| </button> | ||
| <p> | ||
| <a href="{{exportdata}}" download="{{exportname}}" ng-show="exportvisible"><i class="material-icons">file_download</i> Export naar USB</a> | ||
|
|
||
| <div ng-hide="true" id="scoreexport"> | ||
| <style> | ||
| #bodyranking{ | ||
| background-color:#DEDEDE; | ||
| background-color:#DEDEDE; | ||
| background-repeat:no-repeat; | ||
| } | ||
| #rankingtable{ | ||
| #rankingtable{ | ||
| font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif; | ||
| text-align:center; | ||
| width:95%; | ||
| margin-left:auto; | ||
| margin-left:auto; | ||
| margin-right:auto; | ||
|
|
||
| } | ||
| #scoreexport{ | ||
| border:1px solid black; | ||
|
|
@@ -219,7 +224,7 @@ <h1> | |
| color:white; | ||
| font-size:x-large; | ||
| white-space:nowrap; | ||
|
|
||
| } | ||
| .top{ | ||
| background-color:silver; | ||
|
|
@@ -229,7 +234,7 @@ <h1> | |
| background-color:rgba(255, 255, 255, 0.8); | ||
|
|
||
| } | ||
| .out{ | ||
| .out{ | ||
| opacity: 0; | ||
| -webkit-transition: opacity 2s ease-in; | ||
| -moz-transition: opacity 2s ease-in; | ||
|
|
@@ -246,24 +251,24 @@ <h1> | |
| FLOWAMOUNT = angular.element(document.querySelector('[ng-controller="rankingCtrl"]')).scope().export.flowAmount; | ||
| // The amount of scores always visible at top | ||
| FIXEDSHOWNTOP = angular.element(document.querySelector('[ng-controller="rankingCtrl"]')).scope().export.fixedShownTop; | ||
| // Amount of seconds that the first page shows | ||
| // Amount of seconds that the first page shows | ||
| TIMEFORFRAME1 = angular.element(document.querySelector('[ng-controller="rankingCtrl"]')).scope().export.timeForFrame1; | ||
| // Amount of seconds that each scroll takes | ||
| // Amount of seconds that each scroll takes | ||
| TIMETHROUGHFRAMES = angular.element(document.querySelector('[ng-controller="rankingCtrl"]')).scope().export.timeThroughFrames; | ||
| // Amount of scores that move away and appear | ||
| FADEATONEGO = angular.element(document.querySelector('[ng-controller="rankingCtrl"]')).scope().export.fadeAtOneGo; | ||
|
|
||
| for(var p = 0 ; p <= FIXEDSHOWNTOP -1 ; p++){ | ||
| document.getElementById('trrow'+p).className = 'top'; | ||
|
|
||
| } | ||
| for(var q = FIXEDSHOWNTOP ; q <= TOTALAMOUNT -1 ; q++){ | ||
| document.getElementById('trrow'+q).className = 'all'; | ||
|
|
||
| } | ||
| for(var x = FLOWAMOUNT; x<(TOTALAMOUNT);x++){ | ||
| document.getElementById('trrow'+x).style.visibility = 'hidden'; | ||
| } | ||
| } | ||
| //alert(amount); | ||
| setTimeout(gotoNext,(TIMEFORFRAME1*1000)); | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Unnecessarily complex: just make
$scope.delimiterthe tab character by default, and always split on$scope.delimiterthen.