|
1 | 1 | import './styles/main.scss'; |
| 2 | +import LatestDevNotes from './tab_Dev_latest.jsx'; |
2 | 3 |
|
3 | 4 | import React from 'react'; |
4 | 5 | import {Nav, Navbar} from 'react-bootstrap'; |
@@ -37,123 +38,93 @@ const tabs = [ |
37 | 38 |
|
38 | 39 | const AppRouter = () => { |
39 | 40 |
|
| 41 | + |
| 42 | + |
40 | 43 | const [basePath, setBasePath] = React.useState(''); |
41 | 44 |
|
42 | 45 | const [currentVersion, setVersion] = React.useState(''); |
43 | 46 |
|
| 47 | + const [newVersion, setNewVersion] = React.useState(1.104); |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + const [showUpdateScreen,setShowUpdateScreen] = React.useState(false); |
| 52 | + |
| 53 | + |
| 54 | + toggleConsole = () => { |
| 55 | + |
| 56 | + GlobalSettingsDB.upsert( |
| 57 | + "globalsettings", |
| 58 | + { |
| 59 | + $set: { |
| 60 | + version: newVersion, |
| 61 | + } |
| 62 | + } |
| 63 | + ); |
| 64 | + |
| 65 | + |
| 66 | + setShowUpdateScreen(false) |
| 67 | + |
| 68 | + |
| 69 | +} |
| 70 | + |
44 | 71 |
|
45 | 72 |
|
46 | 73 | React.useEffect(() => { |
| 74 | + |
| 75 | + |
| 76 | + |
47 | 77 | Meteor.subscribe('GlobalSettingsDB', () => { |
| 78 | + |
| 79 | + |
48 | 80 | const updatedBasePath = GlobalSettingsDB.find({}).fetch()[0].basePath; |
49 | 81 | setBasePath(updatedBasePath); |
| 82 | + |
50 | 83 |
|
51 | 84 | var version = GlobalSettingsDB.find({}).fetch()[0].version; |
52 | 85 |
|
53 | | - var newVersion = 1.103 |
54 | 86 |
|
55 | 87 | setVersion(newVersion) |
56 | 88 |
|
57 | 89 | if(version != newVersion){ |
58 | 90 |
|
59 | | - alert(` |
60 | | -
|
61 | | - Beta v1.103 release [27th Jan 2020]: |
62 | | - Changes: |
63 | | - -[New] Option to set folder watch scan interval (default 30 secs) |
64 | | - -[New] Button to skip all for transcode and health check queues |
65 | | - -[New] Option on 'Options' tab to toggle worker stall detector |
66 | | - -[New] Basic output file size estimation shown on workers |
67 | | - -[Re-Fix] Prevent too many workers being started |
68 | | - -[Fix] Links open correctly when using context menu |
69 | | - -[Fix] Images stored locally |
70 | | -
|
71 | | - Beta v1.102 release [18th Jan 2020]: |
72 | | - Changes: |
73 | | - -[New] Plugin creator option (Filter by age) - select 'Date created' or 'Date modified' |
74 | | - -[New] Plugin creator option (Filter by age) - include files OLDER than specified time |
75 | | - -[New] Options to sort queue by date (Scanned, Created, Modified) |
76 | | - -[Fix] Audio file codec not showing in search results |
77 | | - -[Fix] MJPEG video incorrectly tagged as audio file |
78 | | - -[Fix] Default plugin priority |
79 | | - -[Fix] 'Too many packets buffered for output stream' when health checking |
80 | | - -[Fix] Folder path placeholder text |
81 | | -
|
82 | | - Beta v1.101 release [06 Dec 19]: |
83 | | - Changes: |
84 | | - -[New] Force processing of files |
85 | | - -[New] Action: HandBrake basic options |
86 | | - -[New] Action: Add one audio stream |
87 | | - -[New] Action: Keep one audio stream |
88 | | - -[New] Action: Standardise audio stream codecs |
89 | | - -[New] Channel count now shown in streams table |
90 | | - -[Fix] Rare search result bug (no results shown) |
91 | | - -[Fix] Audio files with cover art being detected as video |
92 | | -
|
93 | | - v1.008 release [1st Dec 19]: |
94 | | - Changes: |
95 | | - -[New] Plugin creator UI and groundwork for future Filters and Actions. Filters now encapsulate Action taken. No separate Filter needed |
96 | | - -[New] Re-order streams plugin added by default for new libraries |
97 | | - -[New] Backup and restore feature (scheduled midnight backup) |
98 | | - -[New] Toggle copying to output folder if file already meets conditions |
99 | | - -[Improvement] Change to how plugins are imported. Built-in NodeJS modules can now be used when creating plugins. (Can use e.g. require('fs') etc) |
100 | | - -[Improvement] Idle CPU usage drastically reduced |
101 | | - -[Improvement] Various stability fixes |
102 | | - -[Improvement] Confirmation needed when restoring from backup |
103 | | - -[Fix] Video resolution boundaries improved |
104 | | - -[Fix] Non existent files + junk removed when running Find-New scan |
105 | | - -[Fix] Corrected error when creating remux container plugin |
106 | | - -[Fix] If one plugin has an error, the rest will still load |
107 | | - -[Fix] Auto cache cleaner disabled due to issues on some systems |
108 | | - -[Fix] Move item to Transcode:Error instead of Transcode:Not required if error with plugin |
109 | | -
|
110 | | -
|
111 | | -
|
112 | | - v1.007 release [22nd Nov 19]: |
113 | | - Changes: |
114 | | - -[New] Option to enable Linux FFmpeg NVENC binary (3.4.5 for unRAID compatibility) |
115 | | - -[New] Option to ignore source sub-folders |
116 | | - -[New] Skip health check button |
117 | | - -[New] Option to change visible queue length |
118 | | - -[New] Option to duplicate library |
119 | | - -[New] Customise search result columns |
120 | | - -[New] UI improvements (@jono) |
121 | | - -[New] Option to delete source file when using folder to folder conversion. |
122 | | - -[New] Community plugins (Remove commentary tracks etc) |
123 | | - -[New] Option to delete local plugins |
124 | | - -[New] Auto clean cache folder + preventing non-Tdarr cache files being deleted in case of incorrect mapping. |
125 | | - -[Fix] Reset processing status of all files on startup so no files stuck in limbo |
126 | | - -[Fix] Transcode pie showing incorrect data |
127 | | - -[Fix] Folder watcher will now wait longer to detect if a new file has finished copying |
128 | | - -[Fix] Folder to folder conversion: Files which already meet requirements will be copied to output folder |
129 | | - -[Fix] Folder to folder conversion: Cache/Output folder bug |
130 | | - -[Fix] Default containers to scan for now include ts/m2ts |
131 | | - -[Fix] Keep all stream types when using remux plugin creator |
132 | | - -[Fix] Prevent too many workers occassionally starting |
133 | | - -[Fix] Newly transcoded files will be bumped correctly to top of queue when sorting by size |
134 | | - -[Fix] Closed caption scanning now much faster & accurate (even on empty captions) |
135 | | - -[Fix] Plugin creator plugin path error |
136 | | - -[Fix] Health check error when using FFmpeg hardware transcoding |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - `) |
142 | | - |
143 | | - GlobalSettingsDB.upsert( |
144 | | - "globalsettings", |
145 | | - { |
146 | | - $set: { |
147 | | - version: newVersion, |
148 | | - } |
149 | | - } |
150 | | - ); |
| 91 | + setShowUpdateScreen(true) |
151 | 92 | } |
152 | 93 | }); |
153 | 94 | }); |
154 | 95 |
|
155 | 96 | return ( |
156 | 97 | <Router> |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + <div className={showUpdateScreen ? '' : 'd-none'}> |
| 103 | + |
| 104 | + <div id="consoleBar" className="consoleBarClass"> |
| 105 | + <a href="javascript:void(0)" className="closebtn" onClick={this.toggleConsole}>X</a> |
| 106 | + <p> </p> |
| 107 | + <div id="consoleDiv" className="consoleDivClass"> |
| 108 | + <div className="updateScreen"> |
| 109 | + |
| 110 | + |
| 111 | + <h1>Change log</h1> |
| 112 | + |
| 113 | + <LatestDevNotes /> |
| 114 | + |
| 115 | + |
| 116 | + </div> |
| 117 | + </div> |
| 118 | + |
| 119 | + |
| 120 | + </div> |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + </div> |
| 126 | + |
| 127 | + |
157 | 128 | <Navbar |
158 | 129 | className="mb-0 rounded-0 d-flex justify-content-between" |
159 | 130 | collapseOnSelect |
|
0 commit comments