Skip to content

Commit

Permalink
Do not show version from demo site since it is not accurate now (#1187)
Browse files Browse the repository at this point in the history
* Remove version from demo site

* Remove version from master branch
  • Loading branch information
JiuqingSong authored Aug 17, 2022
1 parent 130459e commit 557a62a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<script src="https://unpkg.com/@fluentui/[email protected]/dist/fluentui-react.js"></script>
<script src="rooster-min.js"></script>
<script src="rooster-react-min.js"></script>
<script src="version.js"></script>
<script src="demo.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions demo/scripts/controls/MainPane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

.noGrow {
flex: 0 0 auto;
overflow-x: hidden;
}

.body {
Expand Down
8 changes: 1 addition & 7 deletions demo/scripts/controls/titleBar/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import * as React from 'react';
const styles = require('./TitleBar.scss');
const github = require('./iconmonstr-github-1.svg');

interface WindowHack extends Window {
roosterJsVer: string;
}

export interface TitleBarProps {
className?: string;
}
Expand All @@ -19,9 +15,7 @@ export default class TitleBar extends React.Component<TitleBarProps, {}> {
<div className={styles.title}>
<span className={styles.titleText}>RoosterJs Demo Site</span>
</div>
<div className={styles.version}>
{((window as any) as WindowHack).roosterJsVer || ''}
</div>
<div className={styles.version}></div>
<div className={styles.links}>
<a
href="https://github.com/Microsoft/roosterjs/wiki"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roosterjs",
"version": "8.29.2",
"version": "0.0.0",
"description": "Framework-independent javascript editor",
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions tools/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Utilities
const ProgressBar = require('progress');
const { mainPackageJson } = require('./buildTools/common');

// Steps
const tslintStep = require('./buildTools/tslint');
Expand Down Expand Up @@ -87,7 +86,7 @@ class Runner {

run() {
(async () => {
console.log(`Start building roosterjs version ${mainPackageJson.version}\n`);
console.log(`Start building roosterjs\n`);

const bar = this.getUI();

Expand Down
2 changes: 0 additions & 2 deletions tools/buildTools/buildDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ async function buildDemoSite() {
path.resolve(sourcePathRoot, 'index.html'),
path.resolve(deployPath, 'index.html')
);
var outputFilename = path.join(deployPath, 'version.js');
fs.writeFileSync(outputFilename, `window.roosterJsVer = "v${mainPackageJson.version}";`);
}

module.exports = {
Expand Down

0 comments on commit 557a62a

Please sign in to comment.