Commit Graph

111 Commits

Author SHA1 Message Date
luzpaz
08b3bf4462 Fix various trailing whitespace issues 2023-02-16 09:30:22 -05:00
Yorik van Havre
2a4e87b64d Fixes startpage css - fixes #8330 2023-02-05 15:09:23 +01:00
Yorik van Havre
6a6442b0a3 Start: Added option to hide start page scrollbars 2023-02-04 22:50:23 +01:00
Adrián Insaurralde Avalos
8b85903dff Adjust Startpage version info to new format
due to the changes from 9869a2c3d7
2022-12-25 14:52:45 +01:00
Chris Hennes
9a0e50fbad Start: Add icon for FCMacro files
Closes #7709
2022-12-21 22:51:02 -06:00
Chris Hennes
c355810538 Start: Remove Py2 code 2022-11-09 14:08:54 +01:00
VM4Dim
cd6ea30d31 [StartPage] Fix Wiki Link to Reverse_Engineering WB Page 2022-09-05 15:34:06 +03:00
0penBrain
6ab0ba073d [Bugfix] Prevent start page loading to fail if WB doesn't define an icon 2022-05-02 14:30:24 +02:00
wmayer
cf7fd5d2ac lgtm: removes unused imports in Python scripts 2022-03-20 23:00:55 +01:00
Yorik van Havre
fb926cb626 Start: Added possibility to provide custom CSS for the start page 2022-03-04 14:06:13 +01:00
wmayer
4abd91c8e0 StartPage: fix regression of #5515 2022-02-14 08:37:53 +01:00
luz paz
4e3723b9a0 StartWB: Remove superfluous paranthesis [skip ci] 2022-02-10 17:17:32 +01:00
luz paz
d26bd6ffb8 StartWB: Remove python2 support
* removed six module  
* removed encode() function
2022-02-10 17:17:32 +01:00
luz paz
eef27b845f Start: header uniformity + whitespace management + misc. pep8 fixes 2022-01-08 18:28:27 +01:00
wmayer
bce8c25421 Start: if a corrupted file is part of the Recent File List then ignore it 2021-10-11 10:13:49 +02:00
Yorik van Havre
b8f4a152d3 Start: Fixed faling test 2021-08-30 15:36:13 +02:00
川島和津実
a95e9549a6 Start: Correct hash for thumbnail filename (py3)
Image file names need to be quoted before hashing to generate thumbnail file names. This is related to pull requests #4931 and #4972, so please refer to discussions therein. Only Python3 is supported, not Python2.
2021-08-18 22:27:39 +08:00
川島和津実
3b6c442187 Start: Correct hash for thumbnail filename
Image file names need to be quoted before hashing to generate thumbnail file names.
This is related to pull requests #4931 and #4972, so please refer to discussions therein.
2021-08-18 22:15:18 +08:00
Chris Hennes
1d74880ac2 Revert "Start: Properly hash thumbnail filenames" 2021-08-17 14:28:47 -05:00
GUAN Xin
dab4168008 Start: Properly hash thumbnail filenames
Image filenames should be encoded as URI before being hashed.

Also assume that filenames are already utf8 because the community
has been advertiseing utf8 usage since the beginning of this centry.

Calling .encode("utf8") on strings that are already in utf8 simply
raises the following exception:

  UnicodeDecodeError: 'ascii' codec can't decode byte ...
for non-ascii (already utf8) strings.

It's in fact impossible to precisely determine pathname encoding
because different components within the path may have different
encodings, e.g., a utf8 directory name followed by an MBCS filename
is valid on Linux native filesystems.
It's the user's responsibility to keep the iocharset consistent.
2021-07-21 16:49:06 +08:00
Heewa Barfchin
8cefceaf99 Start: fix bug when custom dir missing 2021-05-10 13:24:17 -04:00
Chris Hennes
1958e30f84 Modify Start HTML to be valid HTML
Using the W3C validator, a number of minor issues were found with the Start page
HTML. Those items were:
* Missing language setting on the body of the document
* Deprecated attributes set for the style and script tags
* Image tags require alt text
* List tags can only contain list items
* All file:/// URLs must not contain backslashes, even on Windows
2021-01-31 22:13:47 -06:00
Chris Hennes
ba8e0aa863 Minor tweaks to Start recommended by LGTM
Using the results of the vulnerability scan at lgtm.com, some minor
changes were made. First, all Python exception handling now explicitly
catches Exception, rather than BaseException (which would include SystemExit
and KeyboardInterrupt). Second, unused imports were removed. Third, a
couple of unnecessary or unused assignments were addressed. Finally, the
JavaScript was modified to explicitly declare the local ddiv variable when
needed.
2021-01-26 20:38:51 -06:00
Chris Hennes
a0aaae7ead Add SHADOW replacement 2021-01-08 21:48:31 -06:00
Yorik van Havre
d339e40671 Start: Fixed freedesktop thumbnail retrieval 2021-01-07 15:36:06 +01:00
Łukasz Stelmach
a8da70e7ff Start: encode basename to avoid crashes on non-ascii file names 2020-12-01 14:56:38 +01:00
Yorik van Havre
eee68a314b Start: Allow to display more than one custom folder on the start page 2020-10-20 12:03:27 +02:00
wmayer
617668a7f2 Coverity: [skip ci] Bad use of null-like value 2020-07-21 12:23:10 +02:00
triplus
af5e7abe46 Use relative path to stylesheet fix #4130 2020-03-19 14:25:03 +01:00
Yorik van Havre
6fee2cda22 Start: Added settings button and allow to turn tips off 2020-01-22 12:46:45 +01:00
Markus Lampert
c6c761b812 Added <last> as an option to the workbench selection. 2019-11-01 17:42:14 -03:00
Yorik van Havre
96e5d20a73 Start: Small cosmetic fixes 2019-09-07 16:45:14 -03:00
Yorik van Havre
622eadc80c StartPage: thumbnails for image formats, + use freedesktop thumbnails if available 2019-07-03 10:52:43 -03:00
Yorik van Havre
d4ed08f75a Start: Fixed bad default icon in start page 2019-05-02 18:01:08 -03:00
cclauss
e3545c8c06 Unicode fixes for Python3 2019-03-17 20:58:00 +01:00
easyw
29ae44e083 fixing kicad StepUp wiki page link 2019-02-26 14:40:02 -03:00
triplus
99b289e541 Start module Py2 encoding
https://forum.freecadweb.org/viewtopic.php?p=287690#p287600
2019-02-19 10:31:00 -03:00
rokuster
ddc27357f5 Fix Images Display Issues
- Replace relative Add-On Image Path with full file uri in StartPage.js file
- Fix a missing absolute file path
- Fix a duplicated data folder entry in the Resourcepath
2019-02-06 10:13:11 -02:00
Kurt Kremitzki
2e03740572 Fix Start WB behavior for missing examples dir in Debian package 2019-01-20 00:36:35 +01:00
Yorik van Havre
71d57b3760 Start: Handle addons with non-standard WB name 2019-01-15 20:01:23 -02:00
Yorik van Havre
3f51e25b26 Start: Fixed image file paths 2019-01-14 20:20:12 -02:00
Yorik van Havre
6efd6de4c1 Start: Show 'New' button even if recent files list is empty 2019-01-07 19:44:49 -02:00
Yorik van Havre
1a7d3d9a37 Start: Don't switch workbenches if we're not in Start anymore 2018-12-31 16:45:16 -02:00
Yorik van Havre
e83c44200a Start: Better handling of unicode on py2 2018-12-29 14:41:25 -02:00
Yorik van Havre
42e6650ac0 Start: Fixed translation on py2 2018-12-28 11:38:21 -02:00
Yorik van Havre
7d197ce829 Start: Use default file icon if mime-based one is unavailable for some reason 2018-11-08 17:56:21 -02:00
luz.paz
125f41e3e8 Misc. typo fix
Found via `codespell`
2018-10-11 16:21:28 -04:00
lorenz
795e261be6 StartPage - handle should always return unicode 2018-10-05 11:33:30 +02:00
lorenz
c159f9abad py3: fix unicode problem 2018-10-05 11:33:17 +02:00
Yorik van Havre
da9c652782 Start: Write test page in non-binary format 2018-10-04 11:11:48 -03:00