47 Commits

Author SHA1 Message Date
Peter Kokot
f06fee3640 Sync final newlines
This patch adds some missing newlines and trims multiple final newlines
into a single newline.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-02 03:44:40 +02:00
Peter Kokot
9895f91d46 Trim trailing whitespace 2018-10-02 03:21:09 +02:00
Yannick Torrès
4006f77942 VCS user can modify & save a file even if this file was modified by an other VCS user 2015-03-30 22:27:27 +02:00
Yannick Torrès
c997ab199a Tab caracter not allowed into the editor. Replace it by 4 spaces. Fixing it since it already exist but doesn't work 2012-10-15 17:45:50 +02:00
Alexander Moskaliov
a30eeefccc "patch" and "work" refactor 2012-02-23 16:58:27 +04:00
Alexander Moskaliov
e4f8faeff2 Add haveKarma flag to users.
Now svn users can edit files in language, in which they don't have karma, like anonymous.
2012-02-22 23:45:43 +04:00
Yannick Torres
3fe69f9758 Fix more bug #60435 2011-12-04 21:47:15 +00:00
Yannick Torres
94a83f08ee Upgrade to Codemirror 2. 2011-12-04 13:37:17 +00:00
Yannick Torres
547c676bd9 Empty the Revision number when we open a new file for translation into the FNT module 2011-09-19 05:15:49 +00:00
Yannick Torres
0ce57c1a94 No more get EN modification information when we load a LANG file via 'Files need update', 'Error in current translation' & 'Files need reviewed' modules as we now load the original content even if the EN file have been modified 2011-09-18 17:14:24 +00:00
Alexander Moskaliov
376e5177f3 Show original read only file in right panel 2011-09-16 05:56:48 +00:00
Yannick Torres
2738d79377 Don't add the revcheck tag if we found it into the document 2011-09-14 18:50:56 +00:00
Yannick Torres
2087b9e41d Automatically add revcheck tag when we open a new file for translation 2011-09-14 18:30:01 +00:00
Yannick Torres
0ffe7e146c New functionnality : when translating a new file, translator can choose, as a second panel, google translation or original file 2011-07-24 20:15:27 +00:00
Yannick Torres
bf61d207e1 Add a new validation window when a valid VCS user open a file modified by an anonymous user from the patches for review module ; Fix little bug too 2011-01-17 21:24:42 +00:00
Yannick Torres
8894d203d9 CleanUp the code 2011-01-02 02:15:59 +00:00
Yannick Torres
e84d7d28c4 If a VCS user modify a file on a computer, he can continue to modify it on an other computer 2010-12-18 21:11:01 +00:00
Yannick Torres
b88be71aa8 Remove patch section in configuration window ; Use an object to store user configuration ; Fix some locale issue ; Add some new option in configuration window 2010-05-29 23:52:35 +00:00
Yannick Torres
e232ed22e7 New :
* upgrade extJs to 3.2.1
* Remove "Pending commit" module in favore to "work in progress" module
* Remove "Pending patch" module in favore to "patches for review" module
* Add a field to ask for an email when we logging in. It allow users to contact others.
* Add a progress bar to allow user indicate the progression of his work
* Anonymous user are no longer "anonymous", as a cookie is set on connexion to "authenticate" him.
* Anonymous user can save a file as an authenticated user. No longer only use the "patch" button.
* New rules when a file is edited. When the file is edited by :

  - an anonymous user : authenticated user can always edit it. When he does, the owner change and anonymous user can't edit it again.

  - an authenticated user : anonymous and others authenticated users can't edit it. The first user must release it (eithers commit his change, or remove the change he does). Administrator can edit it. This can allow to override change made by an authenticated user. Administrators are defined per project in configuration file.

* We no longer allow a user to commit files changed by others users. An authenticated user can only commit his files.

Bugs :

  - fix bug #51767
  - fix bug that display internal file (.new) in some modules
  - change file() class beaviours
2010-05-24 20:04:32 +00:00
Yannick Torres
f0cac3ec63 Simplify the store ; remove unecessary arguments in some functions ; reindent ; move js/ui/component/ to js/ui/cmp/ to save some space 2010-04-25 15:39:34 +00:00
Yannick Torres
b0923b9e68 Use a Css class for the google icon 2010-04-24 18:59:05 +00:00
Yannick Torres
785f154e39 Fix second part of bug #51449 : Add a new file ; Fix some bug introduice with the first part too. ; Fix locale for all this new functionality 2010-04-11 20:10:57 +00:00
Yannick Torres
c91e6d689e Replace automatically the first line of an open file to add UTF-8 encoding tag if the encoding is not UTF-8 2010-03-30 06:06:19 +00:00
Yannick Torres
f7d0434eef Fix bugs spotted by Pedram 2010-03-13 21:50:58 +00:00
Yannick Torres
77a48939de cleanUp the code 2010-03-13 16:38:22 +00:00
Yannick Torres
08f3a48f62 CleanUp code 2010-03-11 10:27:39 +00:00
Yannick Torres
556c1e2358 Allow multi-drag & drop from allFiles tree 2010-03-07 10:40:18 +00:00
Yannick Torres
b87dfb6380 Allow multi-open files by drag & drop from the grid of a module (expect from all Files & PendingCommit) 2010-03-06 23:49:56 +00:00
Yannick Torres
9ca16323e7 Change the name of the class to reflect the new name of this app 2010-03-02 12:29:21 +00:00
Yannick Torres
1c55847263 Propose an automatic translation from Google Translation API for needTranslate module. Idea from Bjori ;) 2010-02-26 06:38:10 +00:00
Yannick Torres
8fe5aefc2e Fix partially #51020 2010-02-11 22:29:23 +00:00
Yannick Torres
6050eafaac Review when we must display the merlink and when we don't 2010-01-09 16:10:14 +00:00
Yannick Torres
2e0220770d Add permlink as an anchor img before the title (less intrusive) & add a tooltip for it 2010-01-07 17:37:36 +00:00
Yannick Torres
05620c73c8 Activate the undo btn on codeChange ; Mark as durty the content when tab have been deleted automatically 2009-12-25 16:28:26 +00:00
Yannick Torres
2a228e52d7 Fix a bug on permlink introduice by me a few commit later 2009-12-23 16:33:04 +00:00
Yannick Torres
98b1c77591 Forget the condition..... Need to sleep ;) 2009-12-23 13:38:14 +00:00
Yannick Torres
883c922158 Warn when we open a file witch contains some tab caracter. Codemirror replace it by some space, as IE don't handle it. 2009-12-23 13:30:37 +00:00
Yannick Torres
fd72fa8727 Remove the permlink for a patch 2009-12-23 10:07:32 +00:00
Yannick Torres
5da6ec06bf Open Permlink into a new tab (or new window, depending your browser configuration) 2009-12-23 09:32:51 +00:00
Chan Ka Shing
4feb08a94c doc-editor: beautify permlink for multi-xmlid file 2009-12-11 06:37:42 +00:00
Chan Ka Shing
fdb756451e doc-editor: permlink is now generated on title bar of filepanel 2009-12-05 09:32:02 +00:00
Yannick Torres
85252e7c9d Allow to view the content of a file witch is not in EN tree into a new tab 2009-11-15 18:58:58 +00:00
Yannick Torres
37b4d5671a Add module to translate new file 2009-11-15 16:14:31 +00:00
Yannick Torres
cdbd408dbc exec jsLint on ui/task 2009-10-24 09:04:41 +00:00
Chan Ka Shing
f7bd0a3d1b modification/fix:
* adopted mod_rewrite, reflect changes to URLs
  * util.js - XHR will now always fire requset to server with mod_rewrite defined rule
  * login.js - reformat codes, cvs2svn adoption changes
2009-08-12 07:17:22 +00:00
Chan Ka Shing
ec7a55c1aa modification/fix:
* apply singleton pattern to all unique component, singleton component can be obtained by ui.component.XXX.getInstance()
  * file panel exclude 'home' & 'end' key as modifying keys
  * file panel string concat using string.join() instead of operator +

main.js cleanup:
  * migrated phpDoc.saveLangFile into ui/component/FilePanel.js
  * migrated repositoryContextMenu into ui/component/RepositoryTree.js
  * sendEmail is now wrapped in ui/component/EmailPrompt.js
  * WinCheckBuild is now wrapped in ui/component/CheckBuildPrompt and ui/task/CheckBuildTask.js
  * WinUpdate is now wrapped in ui/component/SystemUpdatePrompt and ui/task/SystemUpdateTask
  * WinCommit is now wrapped in ui/component/CommitPrompt and ui/task/CVSCommitTask.js;
    CommitLog management is now in ui/component/CommitLogPrompt
2009-07-03 04:11:10 +00:00
Chan Ka Shing
fdab95a628 modification/fix:
* fix CodeMirror cannot display the end of vertical scroll [bug in last commit]
  * FilePendingOpen queue is now storing { fpath, fname } object instead of plain array
  * created static reference for singleton components, dependency on phpDoc.xxx are removed and use ui.component.xxx.instance instead
  * created static reference for PingTask, dependency on phpDoc.TaskPing is removed
  * remove .run() in task/*.js
  * fix openning multiple files will stop when some files already opened

main.js cleanup:
  * load configuration task is wrapped in ui/task/LoadConfigTask.js
  * menuMarkupEN & menuMarkupLANG is now wrapped in ui/component/FilePanel.js
  * newTabCheckDoc, newTabBuildStatus, winConf, winAbout is now wrapped in ui/component/MainMenu.js
  * getFile is now wrapped in ui/task/GetFileTask.js
  * confUpdate is now wrapped in ui/task/UpdateConfTask.js
  * winDiff moved into CVSLogGrid.js
  * newTabMailing moved into LocalMailGrid.js
  * newTabBugs moved into BugsGrid.js
  * addToPendingPatch is now wrapped in ui/task/SavePatchTask.js
  * addToPeningCommit moved into PendingCommitGrid.js
2009-06-26 10:29:45 +00:00