This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reuse code from welcome page by moving it to a util Signed-off-by: Johannes Faltermeier <jfaltermeier@eclipsesource.com> Contributed on behalf of STMicroelectronics
- Loading branch information
1 parent
e1f5295
commit 5365fd2
Showing
4 changed files
with
212 additions
and
106 deletions.
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
theia-example-updater/src/electron-browser/customization/branding-util.tsx
This file contains 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/******************************************************************************** | ||
* Copyright (C) 2020 EclipseSource and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
|
||
import * as React from 'react'; | ||
|
||
export function renderWhatIs(): React.ReactNode { | ||
return <div className='gs-section'> | ||
<h3 className='gs-section-header'> | ||
What is this? | ||
</h3> | ||
{/* Once available we should link the customization documention in below text */} | ||
<div > | ||
Eclipse Theia Blueprint product is a <span className='gs-text-bold'>template</span> to showcase | ||
the capabilities of Theia as well as how to build desktop-based products based on the platform. | ||
Theia Blueprint assembles a selected subset of existing Theia features and extensions. We | ||
provide installers for Theia Blueprint to be downloaded (see below) as well | ||
as <a href='https://github.com/eclipse-theia/theia-example' target='_blank'>documentation</a> on | ||
how to customize this template to build a product and installers for your own Theia-based | ||
product. | ||
</div> | ||
</div>; | ||
} | ||
|
||
export function renderWhatIsNot(): React.ReactNode { | ||
return <div className='gs-section'> | ||
<h3 className='gs-section-header'> | ||
What is it not? | ||
</h3> | ||
<div > | ||
Eclipse Theia Blueprint product | ||
is <span className='gs-text-bold'><span className='gs-text-underline'>not</span> a production-ready | ||
product</span>. Therefore, it is also not a replacement for Visual Studio Code or any other IDE. | ||
</div> | ||
</div>; | ||
} | ||
|
||
export function renderTickets(): React.ReactNode { | ||
return <div className='gs-section'> | ||
<h3 className='gs-section-header'> | ||
Reporting feature requests and bugs | ||
</h3> | ||
<div > | ||
The features in the Eclipse Theia Blueprint product are based on Theia and the included | ||
extensions/plugins. For bugs in Theia please consider opening an issue in | ||
the <a href='https://github.com/eclipse-theia/theia/issues/new/choose' target='_blank'>Theia | ||
project on Github</a>. | ||
</div> | ||
<div> | ||
Eclipse Theia Blueprint product only packages existing functionality into a product and installers | ||
for the product. If you believe there is a mistake in packaging, something needs to be added to the | ||
packaging or the installers do not work properly, | ||
please <a href='https://github.com/eclipse-theia/theia-example/issues/new/choose' target='_blank'>open | ||
an issue on Github</a> to let us know. | ||
</div> | ||
</div>; | ||
} | ||
|
||
export function renderSourceCode(): React.ReactNode { | ||
return <div className='gs-section'> | ||
<h3 className='gs-section-header'> | ||
Source Code | ||
</h3> | ||
<div > | ||
The source code of the Eclipse Theia Blueprint product is available | ||
on <a href='https://github.com/eclipse-theia/theia-example' target='_blank'>Github</a>. | ||
</div> | ||
</div>; | ||
} | ||
|
||
export function renderDocumentation(): React.ReactNode { | ||
return <div className='gs-section'> | ||
<h3 className='gs-section-header'> | ||
Documentation | ||
</h3> | ||
{/* Once available we should link the customization documention in below text */} | ||
<div > | ||
Please see <a href='https://github.com/eclipse-theia/theia-example' target='_blank'>here</a> for | ||
documentation how to customize the Eclipse Theia Blueprint product | ||
</div> | ||
</div>; | ||
} | ||
|
||
export function renderDownloads(): React.ReactNode { | ||
return <div className='gs-section'> | ||
<h3 className='gs-section-header'> | ||
Updates and Downloads | ||
</h3> | ||
<div className='gs-action-container'> | ||
You can update the Eclipse Theia Blueprint product directly in this application by navigating to | ||
File {'>'} Settings {'>'} Check for Updates… Moreover the application will check for Updates | ||
after each launch automatically. | ||
</div> | ||
<div className='gs-action-container'> | ||
Alternatively you can download the most recent version from the download page. | ||
</div> | ||
</div>; | ||
} |
This file contains 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 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 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