修改webIDE欢迎页
This commit is contained in:
parent
3409c28090
commit
1dd0c7debb
|
@ -14,7 +14,7 @@
|
|||
<meta name="theme-color" content="#000000">
|
||||
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
||||
<link href="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.16/bundle/alex.all.global.min.css" rel="stylesheet"/>
|
||||
<link href="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.17/bundle/alex.all.global.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/iconfont.css">
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/edu-purge.css">
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/editormd.min.css">
|
||||
|
@ -35,7 +35,7 @@
|
|||
<script src="%PUBLIC_URL%js/editormd/editormd.min.js"></script>
|
||||
<script src="%PUBLIC_URL%js/codemirror/merge/merge.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/moment/2.29.4/moment.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.16/bundle/alex.all.global.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.17/bundle/alex.all.global.js"></script>
|
||||
<%= htmlWebpackPlugin.tags.bodyTags %>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -457,7 +457,7 @@ function CoderDepot(props){
|
|||
</Dropdown>
|
||||
}
|
||||
|
||||
<Link className='newBtn' to={`/${owner}/${projectsId}/webIDE/tree/master`} target="_blank">Web IDE <div className='newBtnImg'></div></Link>
|
||||
<Link className='newBtn' to={`/${owner}/${projectsId}/webIDE/tree/${defaultBranch}`} target="_blank">Web IDE <div className='newBtnImg'></div></Link>
|
||||
|
||||
<Dropdown overlay={downloadMenu} placement="bottomRight" trigger={['click']}>
|
||||
<Button type={'primary'}>下载 <i className="iconfont icon-sanjiaoxing-down ml3 font-14 color-white mr-3"></i></Button>
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 200 200">
|
||||
<defs>
|
||||
<linearGradient id="linear-gradient" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#6dffff"/>
|
||||
<stop offset="1" stop-color="#0080ff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="组_1758" data-name="组 1758" transform="translate(9483 -10311)">
|
||||
<rect id="矩形_340" data-name="矩形 340" width="200" height="200" transform="translate(-9483 10311)" fill="#fff" opacity="0"/>
|
||||
<g id="图层_2" data-name="图层 2" transform="translate(-9472 10328)">
|
||||
<g id="图层_1" data-name="图层 1">
|
||||
<path id="路径_1227" data-name="路径 1227" d="M127.508,32.458,123.06,26.4l-3.9,1.958V77.007l3.239,1.7v-5.4l5.11,8.248,4.145.648V23.03l-4.145,1.6ZM35.847,82.2l9.284-4.62V27.708L35.847,23.03Zm63.463,6.29,8.305,4.951V9.241L99.31,14.192ZM87.378,0H75.863V105.291H93.509V94.841H87.378ZM49.954,21.821l4.577,1.684V93.344l8.348-4.318V27.132l4.477,1.655V19.3L49.954,9.226ZM5.448,78.634,25.6,68.457V49.3l-9.543-1.022v6.736h3.829V61.52l-6.621,3.008V43.873L25.541,46.06V38.216L5.39,31.58ZM154.18,54.855,168.919,31.58l-11.04,1.195-7.355,9.788V36.071L142.406,38V73.006l8.118,1.684V67.982l7.845,10.076,12.7.633Z" transform="translate(2.368)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
|
||||
<path id="路径_1228" data-name="路径 1228" d="M0,110.683a27.2,27.2,0,0,0,2.634-4.577q1.051-2.375,1.727-4.4a33.61,33.61,0,0,0,.979-3.527c.2-.993.317-1.612.345-1.9V92.964h-3.5V88.876H17.445v4.088H9.37V96.75q0,.158-.432,2.245a34.545,34.545,0,0,1-1.439,5.11h5.556v-.72H16.74V122.86a4.822,4.822,0,0,1-1.209,3.325,3.915,3.915,0,0,1-3.008,1.339h-8.2V110.942l-.72,1.137c-.23.389-.489.763-.763,1.152Zm8.017,12.753h4.491c.36,0,.547-.187.547-.576V108.193H8.017Zm9.471-27.521q1.209-1.6,2.073-2.879c.576-.82,1.195-1.77,1.842-2.879a28.457,28.457,0,0,0,1.727-3.267L26.4,88.7a17.271,17.271,0,0,1-.849,1.713H39.727V93.67l-3.354,4.995h2v-.777h3.685v24.758a4.808,4.808,0,0,1-1.209,3.325,3.872,3.872,0,0,1-2.98,1.353h-2.1v-4.045h2.058c.374,0,.547-.2.547-.619v-3.368h-6.29v7.2H28.4v-7.2H22.3q-.23,1.67-.518,3.109c-.187.964-.36,1.814-.533,2.562s-.317,1.353-.446,1.814a7.658,7.658,0,0,0-.187.748l-1.77-.619-1.727-.619c.4-1.6.734-3.008.979-4.318s.475-2.648.677-4.189a35.307,35.307,0,0,0,.3-4.592V98.664H31.811l2.735-4.088H23.131q-1.123,1.756-1.986,2.879l-.993,1.108ZM28.4,115.188v-4.707H22.757v4.707Zm-5.642-12.436v3.627H28.4v-3.627Zm15.617,0h-6.29v3.627h6.29Zm0,12.436v-4.707h-6.29v4.707Z" transform="translate(0 38.179)" fill="#333"/>
|
||||
<path id="路径_1229" data-name="路径 1229" d="M32.82,110.943H51.014c.518-.806.993-1.612,1.439-2.447a15.2,15.2,0,0,0,1.036-2.634V97.168h3.685V106.7a21.591,21.591,0,0,1-1.7,4.2H73.382v4.088H58.427l14.509,8.751L71.151,127.4,55.49,117.91l1.439-2.879H52.756a31.018,31.018,0,0,1-3.742,3.786,41.975,41.975,0,0,1-4.045,3.051,43.833,43.833,0,0,1-3.944,2.361c-1.267.677-2.418,1.223-3.426,1.655s-1.842.777-2.49,1.008l-1.123.417-.518-1.972-.5-1.914s.5-.173,1.439-.547,2.116-.878,3.527-1.569,2.965-1.555,4.635-2.591a32.934,32.934,0,0,0,4.908-3.685H32.82Zm.1-19.849H51.287l-1.166-2.433,3.267-1.871,2,4.318H69.251v-.734h3.685V99.86H69.251V95.182H36.606v4.865H32.921Zm4.75,10.824,9.889,4.462-1.353,3.742-9.889-4.462Zm12.681,3.325-9.831-4.62,1.439-3.786,9.831,4.649Z" transform="translate(14.421 38.135)" fill="#333"/>
|
||||
<path id="路径_1230" data-name="路径 1230" d="M105.835,108.223h-9.37v18.453h-3.7V108.223H77.307a38.49,38.49,0,0,1-2.03,7.125,62.419,62.419,0,0,1-2.634,5.758,44.3,44.3,0,0,1-2.332,3.944c-.691.979-1.065,1.526-1.123,1.626l-2.879-2.591.907-1.3a34.806,34.806,0,0,0,2.015-3.4c.763-1.439,1.54-3.109,2.346-5.023a34.877,34.877,0,0,0,1.958-6.146H64.05v-4.088H74.126V92.117H66.857V88h36.229v4.1H96.465v12.019h9.37Zm-13.07-4.088V92.117H77.955v12.019Z" transform="translate(28.143 38.666)" fill="#333"/>
|
||||
<path id="路径_1231" data-name="路径 1231" d="M98.847,127.257l-3.267-1.77,6.348-14.394,3.311,1.814Zm3.958-29.8L96,90.667l2.433-3.008,6.852,6.794Zm0,10.882L96,101.549l2.433-3.008,6.852,6.794Zm.187,16.985c.317-.59.72-1.439,1.238-2.533a29.74,29.74,0,0,0,1.439-3.6,34.757,34.757,0,0,0,1.281-3.987,14.767,14.767,0,0,0,.547-3.714V87.4h28.788v4.1H111.255V111.5a17.965,17.965,0,0,1-.36,3.4,30.226,30.226,0,0,1-.921,3.527c-.374,1.152-.777,2.26-1.209,3.311s-.82,2-1.195,2.879-.691,1.439-.964,2l-.446.849Zm7.931-.1a34.386,34.386,0,0,0,2.116-4.059c.576-1.339,1.051-2.519,1.439-3.555a30.893,30.893,0,0,0,1.022-3.527l3.6.993s-.1.461-.288,1.18-.475,1.67-.878,2.879-.921,2.461-1.569,3.93a35.5,35.5,0,0,1-2.346,4.491Zm13.617-31.451-1.022,1.871h7.787v-.936h3.742v13.7a4.836,4.836,0,0,1-1.209,3.3,3.858,3.858,0,0,1-2.994,1.439H126.1v9.586a4.736,4.736,0,0,1-1.223,3.282,3.8,3.8,0,0,1-2.98,1.439h-2.749v-4.1h2.706a.576.576,0,0,0,.4-.144.6.6,0,0,0,.158-.417v-9.586h-8.953V95.648h5.758L121.46,91.6Zm6.765,6H117.128v2.792h14.178Zm-.518,9.27q.518,0,.518-.561v-1.814H117.128v2.375ZM132,113.827l4.433,11.8-3.4,1.5-4.318-11.8Z" transform="translate(41.997 38.403)" fill="#333"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.0 KiB |
|
@ -1,20 +1,14 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 200 200">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="156" height="90" viewBox="0 0 156 90">
|
||||
<defs>
|
||||
<linearGradient id="linear-gradient" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#6dffff"/>
|
||||
<stop offset="1" stop-color="#0080ff"/>
|
||||
<linearGradient id="linear-gradient" x1="0.014" y1="0.5" x2="0.879" y2="0.5" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#6bfdff"/>
|
||||
<stop offset="1" stop-color="#0f91ff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="组_1758" data-name="组 1758" transform="translate(9483 -10311)">
|
||||
<rect id="矩形_340" data-name="矩形 340" width="200" height="200" transform="translate(-9483 10311)" fill="#fff" opacity="0"/>
|
||||
<g id="图层_2" data-name="图层 2" transform="translate(-9472 10328)">
|
||||
<g id="图层_1" data-name="图层 1">
|
||||
<path id="路径_1227" data-name="路径 1227" d="M127.508,32.458,123.06,26.4l-3.9,1.958V77.007l3.239,1.7v-5.4l5.11,8.248,4.145.648V23.03l-4.145,1.6ZM35.847,82.2l9.284-4.62V27.708L35.847,23.03Zm63.463,6.29,8.305,4.951V9.241L99.31,14.192ZM87.378,0H75.863V105.291H93.509V94.841H87.378ZM49.954,21.821l4.577,1.684V93.344l8.348-4.318V27.132l4.477,1.655V19.3L49.954,9.226ZM5.448,78.634,25.6,68.457V49.3l-9.543-1.022v6.736h3.829V61.52l-6.621,3.008V43.873L25.541,46.06V38.216L5.39,31.58ZM154.18,54.855,168.919,31.58l-11.04,1.195-7.355,9.788V36.071L142.406,38V73.006l8.118,1.684V67.982l7.845,10.076,12.7.633Z" transform="translate(2.368)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
|
||||
<path id="路径_1228" data-name="路径 1228" d="M0,110.683a27.2,27.2,0,0,0,2.634-4.577q1.051-2.375,1.727-4.4a33.61,33.61,0,0,0,.979-3.527c.2-.993.317-1.612.345-1.9V92.964h-3.5V88.876H17.445v4.088H9.37V96.75q0,.158-.432,2.245a34.545,34.545,0,0,1-1.439,5.11h5.556v-.72H16.74V122.86a4.822,4.822,0,0,1-1.209,3.325,3.915,3.915,0,0,1-3.008,1.339h-8.2V110.942l-.72,1.137c-.23.389-.489.763-.763,1.152Zm8.017,12.753h4.491c.36,0,.547-.187.547-.576V108.193H8.017Zm9.471-27.521q1.209-1.6,2.073-2.879c.576-.82,1.195-1.77,1.842-2.879a28.457,28.457,0,0,0,1.727-3.267L26.4,88.7a17.271,17.271,0,0,1-.849,1.713H39.727V93.67l-3.354,4.995h2v-.777h3.685v24.758a4.808,4.808,0,0,1-1.209,3.325,3.872,3.872,0,0,1-2.98,1.353h-2.1v-4.045h2.058c.374,0,.547-.2.547-.619v-3.368h-6.29v7.2H28.4v-7.2H22.3q-.23,1.67-.518,3.109c-.187.964-.36,1.814-.533,2.562s-.317,1.353-.446,1.814a7.658,7.658,0,0,0-.187.748l-1.77-.619-1.727-.619c.4-1.6.734-3.008.979-4.318s.475-2.648.677-4.189a35.307,35.307,0,0,0,.3-4.592V98.664H31.811l2.735-4.088H23.131q-1.123,1.756-1.986,2.879l-.993,1.108ZM28.4,115.188v-4.707H22.757v4.707Zm-5.642-12.436v3.627H28.4v-3.627Zm15.617,0h-6.29v3.627h6.29Zm0,12.436v-4.707h-6.29v4.707Z" transform="translate(0 38.179)" fill="#333"/>
|
||||
<path id="路径_1229" data-name="路径 1229" d="M32.82,110.943H51.014c.518-.806.993-1.612,1.439-2.447a15.2,15.2,0,0,0,1.036-2.634V97.168h3.685V106.7a21.591,21.591,0,0,1-1.7,4.2H73.382v4.088H58.427l14.509,8.751L71.151,127.4,55.49,117.91l1.439-2.879H52.756a31.018,31.018,0,0,1-3.742,3.786,41.975,41.975,0,0,1-4.045,3.051,43.833,43.833,0,0,1-3.944,2.361c-1.267.677-2.418,1.223-3.426,1.655s-1.842.777-2.49,1.008l-1.123.417-.518-1.972-.5-1.914s.5-.173,1.439-.547,2.116-.878,3.527-1.569,2.965-1.555,4.635-2.591a32.934,32.934,0,0,0,4.908-3.685H32.82Zm.1-19.849H51.287l-1.166-2.433,3.267-1.871,2,4.318H69.251v-.734h3.685V99.86H69.251V95.182H36.606v4.865H32.921Zm4.75,10.824,9.889,4.462-1.353,3.742-9.889-4.462Zm12.681,3.325-9.831-4.62,1.439-3.786,9.831,4.649Z" transform="translate(14.421 38.135)" fill="#333"/>
|
||||
<path id="路径_1230" data-name="路径 1230" d="M105.835,108.223h-9.37v18.453h-3.7V108.223H77.307a38.49,38.49,0,0,1-2.03,7.125,62.419,62.419,0,0,1-2.634,5.758,44.3,44.3,0,0,1-2.332,3.944c-.691.979-1.065,1.526-1.123,1.626l-2.879-2.591.907-1.3a34.806,34.806,0,0,0,2.015-3.4c.763-1.439,1.54-3.109,2.346-5.023a34.877,34.877,0,0,0,1.958-6.146H64.05v-4.088H74.126V92.117H66.857V88h36.229v4.1H96.465v12.019h9.37Zm-13.07-4.088V92.117H77.955v12.019Z" transform="translate(28.143 38.666)" fill="#333"/>
|
||||
<path id="路径_1231" data-name="路径 1231" d="M98.847,127.257l-3.267-1.77,6.348-14.394,3.311,1.814Zm3.958-29.8L96,90.667l2.433-3.008,6.852,6.794Zm0,10.882L96,101.549l2.433-3.008,6.852,6.794Zm.187,16.985c.317-.59.72-1.439,1.238-2.533a29.74,29.74,0,0,0,1.439-3.6,34.757,34.757,0,0,0,1.281-3.987,14.767,14.767,0,0,0,.547-3.714V87.4h28.788v4.1H111.255V111.5a17.965,17.965,0,0,1-.36,3.4,30.226,30.226,0,0,1-.921,3.527c-.374,1.152-.777,2.26-1.209,3.311s-.82,2-1.195,2.879-.691,1.439-.964,2l-.446.849Zm7.931-.1a34.386,34.386,0,0,0,2.116-4.059c.576-1.339,1.051-2.519,1.439-3.555a30.893,30.893,0,0,0,1.022-3.527l3.6.993s-.1.461-.288,1.18-.475,1.67-.878,2.879-.921,2.461-1.569,3.93a35.5,35.5,0,0,1-2.346,4.491Zm13.617-31.451-1.022,1.871h7.787v-.936h3.742v13.7a4.836,4.836,0,0,1-1.209,3.3,3.858,3.858,0,0,1-2.994,1.439H126.1v9.586a4.736,4.736,0,0,1-1.223,3.282,3.8,3.8,0,0,1-2.98,1.439h-2.749v-4.1h2.706a.576.576,0,0,0,.4-.144.6.6,0,0,0,.158-.417v-9.586h-8.953V95.648h5.758L121.46,91.6Zm6.765,6H117.128v2.792h14.178Zm-.518,9.27q.518,0,.518-.561v-1.814H117.128v2.375ZM132,113.827l4.433,11.8-3.4,1.5-4.318-11.8Z" transform="translate(41.997 38.403)" fill="#333"/>
|
||||
</g>
|
||||
<g id="黑色" transform="translate(-3345 -18811)">
|
||||
<rect id="矩形_515" data-name="矩形 515" width="156" height="90" transform="translate(3345 18811)" opacity="0"/>
|
||||
<g id="组_2183" data-name="组 2183" transform="translate(-245 3)">
|
||||
<path id="路径_2846" data-name="路径 2846" d="M91.51,22.55l-3.08-4.21L85.72,19.7V53.5L88,54.68V50.93l3.55,5.73,2.88.45V16L91.5,17.15ZM27.84,57.11l6.41-3.21V19.25L27.84,16Zm44.08,4.37,5.77,3.44V6.42L71.92,9.86ZM63.63,0h-8V73.15H67.89V65.89H63.63Zm-26,15.16,3.18,1.17V64.85l5.8-3v-43L49.72,20V13.41l-12.09-7ZM6.72,54.63l14-7.07V34.25L14,33.54v4.68h2.7v4.52l-4.59,2.09V30.48L20.67,32V26.55l-14-4.61ZM110,38.11l10.28-16.17-7.66.83-5.12,6.8V25.06l-5.63,1.34V50.72l5.63,1.17V47.23l5.45,7,8.82.44Z" transform="translate(3606 18815)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
@ -4,8 +4,13 @@
|
|||
|
||||
.alex-root{
|
||||
position: fixed;
|
||||
|
||||
color: var(--foreground);
|
||||
background-color: var(--editor-background);
|
||||
font-size: var(--base-font-size);
|
||||
}
|
||||
|
||||
.ide-overlay .quick-open-overlay quick-open-container{
|
||||
top: 0px!important;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
import react from 'react';
|
||||
|
||||
function EmptyPage(){
|
||||
return <div>
|
||||
11111
|
||||
</div>
|
||||
}
|
||||
|
||||
export default EmptyPage;
|
|
@ -0,0 +1,27 @@
|
|||
import React from 'react';
|
||||
import './welcome.scss';
|
||||
import ideLogo from '../codeReview/ideLogo.svg';
|
||||
|
||||
|
||||
function Welcome() {
|
||||
return (<div className='welcome'>
|
||||
<div className='text-center'>
|
||||
<img className='welcome-logo' src={ideLogo} />
|
||||
</div>
|
||||
<h1>WebIDE功能特性</h1>
|
||||
<div className="break_word_comments imageLayerParent markdown-body">
|
||||
<h3 id="h3-1-"><a className="reference-link" name="1. 语言服务"></a><span className="header-link octicon octicon-link"></span>1. 语言服务</h3>
|
||||
<p>● 支持近 40 种语言的语法高亮<br />● 支持 JavaScript/TypeScript、HTML、CSS、JSON、Markdown 的基于 LSP (Language Server Protocol) 语言特性功能,具备智能提示和大纲信息以及单文件内跳转。<br/>● 支持 Java、Go、Python、C++、Php 的基于 Tree Sitter 的在线语言服务能力,提供查看引用、符号搜索等特性</p>
|
||||
<h3 id="h3-2-"><a className="reference-link" name="2. 分支"></a><span className="header-link octicon octicon-link"></span>2. 分支</h3><p>支持分支切换:点击左下角分支名即可切换分支。</p>
|
||||
<h3 id="h3-3-"><a className="reference-link" name="3. 搜索"></a><span className="header-link octicon octicon-link"></span>3. 搜索</h3><p>当前支持 Gitlink 仓库内代码搜索(支持单词匹配和文件过滤)和文件搜索。</p>
|
||||
<h3 id="h3-4-"><a className="reference-link" name="4. 行高亮"></a><span className="header-link octicon octicon-link"></span>4. 行高亮</h3><p>支持单行或多行高亮,点击行号即可高亮行,按住 <strong>Shift</strong> 可选中连续多行。</p>
|
||||
<h3 id="h3-5-blame"><a className="reference-link" name="5. Blame"></a><span className="header-link octicon octicon-link"></span>5. Blame</h3><p>支持查看单行 blame 信息,hover 后可展示详细信息。</p>
|
||||
<h3 id="h3-6-graph"><a className="reference-link" name="6. Graph"></a><span className="header-link octicon octicon-link"></span>6. Graph</h3><p>支持 graph 视图,可查看分支 commits 历史以及每个 commit 详细文件变更,并支持文件 diff 查看。底部状态栏左下角点击 Git Graph 或在命令面板输入 View Git Graph,即可打开 Git Graph 视图。</p>
|
||||
<h3 id="h3-7-webscm"><a className="reference-link" name="7. WebSCM"></a><span className="header-link octicon octicon-link"></span>7. WebSCM</h3><p>可以在极速版新建分支,修改代码后在 SCM 面板看到变更文件列表,写完 commit message 后提交到 Gitlink 上。如果想快速修改一些文件可以不用在本地修改,直接通过极速版修改代码一次性提</p>
|
||||
<h3 id="h3-8-"><a className="reference-link" name="8. 代码在线运行"></a><span className="header-link octicon octicon-link"></span>8. 代码在线运行</h3><p>● 集成了基于 skypack 的更加轻量的 <a className="link" href="https://marketplace.visualstudio.com/items?itemName=codespaces-Contrib.codeswing" target="_blank" rel="noopener"><ne-text id="u668cf4f4">CodeSwing</ne-text></a> 插件,可以在极速版去运行前端代码。<br/>
|
||||
● 集成了基于 <a className="link" href="https://pyodide.org/en/latest/usage/packages-in-pyodide.html" target="_blank" rel="noopener"><ne-text id="u2caa2beb">Pyodide</ne-text></a> 的 <a className="link" href="https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner-for-web" target="_blank" rel="noopener"><ne-text id="ufb2dbccf">Code-Runner-For-Web</ne-text></a> 插件,可以将 Python 的运行搬到浏览器上。</p>
|
||||
</div>
|
||||
</div>)
|
||||
}
|
||||
|
||||
export default Welcome;
|
|
@ -0,0 +1,23 @@
|
|||
.kt_editor_background___Hnmig {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.welcome {
|
||||
padding: 3% 4%;
|
||||
|
||||
h1,h2,h3,p{
|
||||
color: var(--foreground);
|
||||
background-color: var(--editor-background);
|
||||
// font-size: var(--base-font-size);
|
||||
}
|
||||
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.welcome-logo {
|
||||
width: 150px;
|
||||
// margin-bottom: 20px;
|
||||
}
|
||||
}
|
|
@ -29,6 +29,7 @@ import * as AlexApp from './plugins/alex-app.plugin';
|
|||
|
||||
// import { StartupModule } from './module/Startup.module'
|
||||
// import { ToobarModule } from './module/ToolBar.module';
|
||||
import Welcome from './module/Welcome';
|
||||
|
||||
import './index.scss';
|
||||
|
||||
|
@ -70,27 +71,15 @@ const layoutConfig = {
|
|||
},
|
||||
};
|
||||
|
||||
// const platformConfig = {
|
||||
// gitlink: {
|
||||
// owner: 'Gitlink',
|
||||
// name: 'forgeplus',
|
||||
// refPath: '',
|
||||
// commit: '',
|
||||
// },
|
||||
// };
|
||||
|
||||
const platform = 'gitlink';
|
||||
// let pathParts = location.pathname.split('/').filter(Boolean);
|
||||
// const config = platformConfig[platform];
|
||||
// if (pathParts[1]) {
|
||||
// config.owner = pathParts[1];
|
||||
// }
|
||||
// if (pathParts[2]) {
|
||||
// config.name = pathParts[2];
|
||||
// }
|
||||
// config.refPath = pathParts.slice(3).join('/');
|
||||
|
||||
const WebIDE = ( props) => {
|
||||
const { match: { params: { owner, projectsId, branchName } }, } = props;
|
||||
let origin=window.location.origin;
|
||||
if(origin.indexOf('localhost')>-1){
|
||||
origin='https://testforgeplus.trustie.net';
|
||||
}
|
||||
|
||||
return (<AppRenderer
|
||||
appConfig={{
|
||||
|
@ -109,8 +98,8 @@ const WebIDE = ( props) => {
|
|||
// gitlens插件的头像在本地开发会无法展示
|
||||
// endpoint: '/code-service',
|
||||
// endpoint:''
|
||||
origin: 'https://testforgeplus.trustie.net',
|
||||
endpoint: 'https://testforgeplus.trustie.net'
|
||||
origin: origin,
|
||||
endpoint: origin
|
||||
},
|
||||
}),
|
||||
CodeAPIModule,
|
||||
|
@ -152,6 +141,8 @@ const WebIDE = ( props) => {
|
|||
biz: 'alex',
|
||||
// scm文件树
|
||||
scmFileTree: true,
|
||||
EditorEmpty: Welcome,
|
||||
WelcomePage: Welcome
|
||||
}}
|
||||
/>
|
||||
)};
|
||||
|
|
|
@ -349,6 +349,7 @@ body {
|
|||
.copy-desc {
|
||||
width: 6rem;
|
||||
padding-top: 1px;
|
||||
flex:none
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue