Parrot About, Welcome, etc.

nomaster
Jeff Moe 2023-11-12 15:54:33 -07:00
parent d795bc541a
commit 485caf4b2a
10 changed files with 39 additions and 57 deletions

View File

@ -5,11 +5,11 @@ const os = require('os');
// process.env.VSCODE_API_VERSION = '1.50.0'
// Use a set of builtin plugins in our application.
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '../', 'plugins')}`;
process.env.PARROT_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '../', 'plugins')}`;
// Lookup inside the user's home folder for more plugins, and accept user-defined paths.
process.env.THEIA_PLUGINS = [
process.env.THEIA_PLUGINS, `local-dir:${path.resolve(os.homedir(), '.theia-blueprint', 'plugins')}`,
process.env.PARROT_PLUGINS = [
process.env.PARROT_PLUGINS, `local-dir:${path.resolve(os.homedir(), '.parrot', 'plugins')}`,
].filter(Boolean).join(',');
// Handover to the auto-generated electron application handler.

View File

@ -17,9 +17,9 @@
},
"theiaExtensions": [
{
"frontend": "lib/browser/theia-blueprint-frontend-module",
"electronMain": "lib/electron-main/theia-blueprint-main-module",
"backend": "lib/node/theia-blueprint-backend-module"
"frontend": "lib/browser/parrot-frontend-module",
"electronMain": "lib/electron-main/parrot-main-module",
"backend": "lib/node/parrot-backend-module"
}
],
"keywords": [

View File

@ -45,16 +45,12 @@ function openExternalLink(url: string, windowService: WindowService): void {
export function renderWhatIs(windowService: WindowService): React.ReactNode {
return <div className='gs-section'>
<h3 className='gs-section-header'>
What is Theia Blueprint?
What is Parrot?
</h3>
<div >
Eclipse Theia Blueprint is a <span className='gs-text-bold'>template</span> to showcase
the capabilities of Eclipse 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 <ExternalBrowserLink text="documentation" url="https://theia-ide.org/docs/blueprint_documentation/"
windowService={windowService} ></ExternalBrowserLink> on how to customize this template to build a
product and installers for your own Theia-based product.
Parrot is a self-hosted Libre AI IDE for stochastic humans.
Read <ExternalBrowserLink text="documentation" url="https://parrot.codes/docs/"
windowService={windowService} ></ExternalBrowserLink> to learn how to use.
</div>
</div>;
}
@ -65,8 +61,7 @@ export function renderWhatIsNot(): React.ReactNode {
What is it not?
</h3>
<div >
Eclipse Theia Blueprint 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.
Parrot is <span className='gs-text-bold'><span className='gs-text-underline'>not</span> production-ready</span>.
</div>
</div>;
}
@ -77,9 +72,7 @@ export function renderSupport(windowService: WindowService): React.ReactNode {
Professional Support
</h3>
<div >
Professional support, implementation services, consulting and training for building tools like this instance of Theia Blueprint and for
building other tools based on Eclipse Theia is available by selected companies as listed on the
<ExternalBrowserLink text=" Theia support page" url="https://theia-ide.org/support/" windowService={windowService} ></ExternalBrowserLink>.
There is <span className='gs-text-bold'><span className='gs-text-underline'>no</span> professional support.</span>
</div>
</div>;
}
@ -90,17 +83,11 @@ export function renderTickets(windowService: WindowService): React.ReactNode {
Reporting feature requests and bugs
</h3>
<div >
The features in Eclipse Theia Blueprint are based on Theia and the included
extensions/plugins. For bugs in Theia please consider opening an issue in
the <ExternalBrowserLink text="Theia project on Github" url="https://github.com/eclipse-theia/theia/issues/new/choose"
windowService={windowService} ></ExternalBrowserLink>.
Email bugs to moe@parrot.codes.
</div>
<div>
Eclipse Theia Blueprint 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 <ExternalBrowserLink text="open an issue on Github" url="https://github.com/eclipse-theia/theia-blueprint/issues/new/choose"
windowService={windowService} ></ExternalBrowserLink> to let us know.
See existing <ExternalBrowserLink text="issues." url="https://spacecruft.org/deepcrayon/parrot/issues"
windowService={windowService} ></ExternalBrowserLink>
</div>
</div>;
}
@ -111,8 +98,7 @@ export function renderSourceCode(windowService: WindowService): React.ReactNode
Source Code
</h3>
<div >
The source code of Eclipse Theia Blueprint is available
on <ExternalBrowserLink text="Github" url="https://github.com/eclipse-theia/theia-blueprint"
Source code <ExternalBrowserLink text="repository" url="https://spacecruft.org/deepcrayon/parrot"
windowService={windowService} ></ExternalBrowserLink>.
</div>
</div>;
@ -124,25 +110,21 @@ export function renderDocumentation(windowService: WindowService): React.ReactNo
Documentation
</h3>
<div >
Please see <ExternalBrowserLink text="here" url="https://theia-ide.org/docs/blueprint_documentation/"
windowService={windowService} ></ExternalBrowserLink> for
documentation how to customize Eclipse Theia Blueprint.
See <ExternalBrowserLink text="documentation" url="https://parrot.codes/docs/"
windowService={windowService} ></ExternalBrowserLink> for more info.
</div>
</div>;
}
export function renderDownloads(): React.ReactNode {
export function renderDownloads(windowService: WindowService): React.ReactNode {
return <div className='gs-section'>
<h3 className='gs-section-header'>
Updates and Downloads
</h3>
<div className='gs-action-container'>
You can update Eclipse Theia Blueprint 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.
You can download the most recent version from the releases page.
See <ExternalBrowserLink text="Releases" url="https://spacecruft.org/deepcrayon/parrot/releases"
windowService={windowService} ></ExternalBrowserLink>
</div>
</div>;
}

View File

@ -90,7 +90,7 @@ export class TheiaBlueprintAboutDialog extends AboutDialog {
</div>
<div className='flex-grid'>
<div className='col'>
{renderDownloads()}
{renderDownloads(this.windowService)}
</div>
</div>
</div>;
@ -99,7 +99,7 @@ export class TheiaBlueprintAboutDialog extends AboutDialog {
protected renderTitle(): React.ReactNode {
return <div className='gs-header'>
<h1>Eclipse Theia <span className='gs-blue-header'>Blueprint</span></h1>
<h1><span className='gs-blue-header'>Parrot</span></h1>
{this.renderVersion()}
</div>;
}

View File

@ -21,17 +21,17 @@ import { MenuContribution, MenuModelRegistry, MenuPath } from '@theia/core/lib/c
import { WindowService } from '@theia/core/lib/browser/window/window-service';
export namespace BlueprintMenus {
export const BLUEPRINT_HELP: MenuPath = [...CommonMenus.HELP, 'blueprint'];
export const PARROT_HELP: MenuPath = [...CommonMenus.HELP, 'parrot'];
}
export namespace BlueprintCommands {
export const CATEGORY = 'Blueprint';
export const CATEGORY = 'Parrot';
export const REPORT_ISSUE: Command = {
id: 'blueprint:report-issue',
id: 'parrot:report-issue',
category: CATEGORY,
label: 'Report Issue'
};
export const DOCUMENTATION: Command = {
id: 'blueprint:documentation',
id: 'parrot:documentation',
category: CATEGORY,
label: 'Documentation'
};
@ -43,8 +43,8 @@ export class TheiaBlueprintContribution implements CommandContribution, MenuCont
@inject(WindowService)
protected readonly windowService: WindowService;
static REPORT_ISSUE_URL = 'https://github.com/eclipse-theia/theia-blueprint/issues/new?assignees=&labels=&template=bug_report.md';
static DOCUMENTATION_URL = 'https://theia-ide.org/docs/blueprint_documentation';
static REPORT_ISSUE_URL = 'https://spacecruft.org/deepcrayon/parrot/issues';
static DOCUMENTATION_URL = 'https://parrot.codes/docs/';
registerCommands(commandRegistry: CommandRegistry): void {
commandRegistry.registerCommand(BlueprintCommands.REPORT_ISSUE, {
@ -56,12 +56,12 @@ export class TheiaBlueprintContribution implements CommandContribution, MenuCont
}
registerMenus(menus: MenuModelRegistry): void {
menus.registerMenuAction(BlueprintMenus.BLUEPRINT_HELP, {
menus.registerMenuAction(BlueprintMenus.PARROT_HELP, {
commandId: BlueprintCommands.REPORT_ISSUE.id,
label: BlueprintCommands.REPORT_ISSUE.label,
order: '1'
});
menus.registerMenuAction(BlueprintMenus.BLUEPRINT_HELP, {
menus.registerMenuAction(BlueprintMenus.PARROT_HELP, {
commandId: BlueprintCommands.DOCUMENTATION.id,
label: BlueprintCommands.DOCUMENTATION.label,
order: '2'

View File

@ -22,9 +22,9 @@ import { CommandContribution } from '@theia/core/lib/common/command';
import { ContainerModule } from '@theia/core/shared/inversify';
import { GettingStartedWidget } from '@theia/getting-started/lib/browser/getting-started-widget';
import { MenuContribution } from '@theia/core/lib/common/menu';
import { TheiaBlueprintAboutDialog } from './theia-blueprint-about-dialog';
import { TheiaBlueprintContribution } from './theia-blueprint-contribution';
import { TheiaBlueprintGettingStartedWidget } from './theia-blueprint-getting-started-widget';
import { TheiaBlueprintAboutDialog } from './parrot-about-dialog';
import { TheiaBlueprintContribution } from './parrot-contribution';
import { TheiaBlueprintGettingStartedWidget } from './parrot-getting-started-widget';
export default new ContainerModule((bind, _unbind, isBound, rebind) => {
bind(TheiaBlueprintGettingStartedWidget).toSelf();

View File

@ -95,7 +95,7 @@ export class TheiaBlueprintGettingStartedWidget extends GettingStartedWidget {
</div>
<div className='flex-grid'>
<div className='col'>
{renderDownloads()}
{renderDownloads(this.windowService)}
</div>
</div>
</div>
@ -132,7 +132,7 @@ export class TheiaBlueprintGettingStartedWidget extends GettingStartedWidget {
protected renderHeader(): React.ReactNode {
return <div className='gs-header'>
<h1>Eclipse Theia <span className='gs-blue-header'>Blueprint</span></h1>
<h1><span className='gs-blue-header'>Parrot</span></h1>
{this.renderVersion()}
</div>;
}
@ -140,7 +140,7 @@ export class TheiaBlueprintGettingStartedWidget extends GettingStartedWidget {
protected renderVersion(): React.ReactNode {
return <div>
<p className='gs-sub-header' >
{this.applicationInfo ? 'Version ' + this.applicationInfo.version + ' (Beta)' : '(Beta)'}
{this.applicationInfo ? 'Version ' + this.applicationInfo.version + ' (Alpha)' : '(Alpha)'}
</p>
<p className='gs-sub-header' >

View File

@ -16,7 +16,7 @@
import { ContainerModule } from '@theia/core/shared/inversify';
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
import { TheiaBlueprintEnvVariableServer } from './theia-blueprint-variables-server';
import { TheiaBlueprintEnvVariableServer } from './parrot-variables-server';
export default new ContainerModule((bind, unbind, isBound, rebind) => {
rebind(EnvVariablesServer).to(TheiaBlueprintEnvVariableServer).inSingletonScope();