Skip to content

Commit

Permalink
Change to word anzir to inzar, changing colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameh Fakoua committed Jun 16, 2019
1 parent a4799e6 commit be7a6cd
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 23 deletions.
4 changes: 2 additions & 2 deletions labiba-ide/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "labiba-ide",
"version": "1.0.3",
"version": "1.0.4",
"main": "src/main.js",
"license": "MIT",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"bootstrap-v4-rtl": "^4.3.1-3",
"dialogs": "^2.0.1",
"jquery": "^3.4.1",
"labiba-transformer": "^0.0.7",
"labiba-transformer": "^0.0.9",
"lodash": "^4.17.11",
"monaco-editor": "^0.17.0",
"popper.js": "^1.15.0",
Expand Down
6 changes: 2 additions & 4 deletions labiba-ide/src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,8 @@ function initEditor() {

editor = monaco.editor.create(document.getElementById('editor'), {
value: `//@لبيبة
ثابت
const
ثابت جملة = "مرحبا بك في لبيبة"
انتظر لبيبة.انذار(جملة)
`,
automaticLayout: true,
language: 'la',
Expand Down
21 changes: 14 additions & 7 deletions labiba-ide/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>

<div class="ui fixed menu red">
<div class="ui fixed menu backcolor-primary">
<div class="ui dropdown as-menu">
<div class="text">ملف</div>
<i class="dropdown icon"></i>
Expand All @@ -27,17 +27,17 @@
حفظ بإسم ...
</div>
<div class="divider"></div>
<div class="item">خروج</div>
<div id="btnClose" class="item">خروج</div>
</div>
</div>
</div>

<div class="ui menu toolbar red">
<div class="ui menu toolbar">
<div class="item">
<div id="btnRun" class="ui primary button">تشخيل</div>
</div>
<div class="item">
<div class="ui button">Log-in</div>
<div id="btnRun" class="ui button backcolor-primary">
تشغيل
<i class="caret square right icon"></i>
</div>
</div>
</div>

Expand Down Expand Up @@ -133,6 +133,13 @@
console.log(file)
fs.writeFileSync(file[0], content, 'utf-8')
})

$('#btnClose').click(function(e) {
e.preventDefault();
const remote = require('electron').remote
let w = remote.getCurrentWindow()
w.close()
})
}
</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions labiba-ide/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function createWindow () {
})

// and load the index.html of the app.
// win.removeMenu()
win.removeMenu()
win.loadFile('src/index.html')

// Open the DevTools.
win.webContents.openDevTools()
//win.webContents.openDevTools()

// Emitted when the window is closed.
win.on('closed', () => {
Expand Down
12 changes: 12 additions & 0 deletions labiba-ide/src/static/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ body {
overflow: hidden;
font-family: "Segoe UI";
}

.textcolor-white {
color: white;
}
.backcolor-primary {
background-color: #FDB3C4 !important;
}

.backcolor-secondary {

}

.page {
display: table;
width: 100%;
Expand Down
8 changes: 4 additions & 4 deletions labiba-ide/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1654,10 +1654,10 @@ labiba-parser@^0.0.6:
resolved "https://registry.yarnpkg.com/labiba-parser/-/labiba-parser-0.0.6.tgz#05af803413ee1e63864d09ed0bcbbbfb66e894fe"
integrity sha512-qFwrSPPt/HORmAOAyW9URxXj5/wJ4h4dlwJK1JtOzgwI4+q/uzvid/pwPD+ErLhj1KgpCyMXzFenGidKsLL5PA==

labiba-transformer@^0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/labiba-transformer/-/labiba-transformer-0.0.7.tgz#a384c14589e9afa5b9b7c7cb64c19628a8a88d96"
integrity sha512-2Y1GK1dDD1s+uGlOqZluj5dI1DcA8FyBwiAzVFjuj0IrmTvfsEC6PzUcqKryHiAioaiPMXMg2H11+mnwOjGMjA==
labiba-transformer@^0.0.9:
version "0.0.9"
resolved "https://registry.yarnpkg.com/labiba-transformer/-/labiba-transformer-0.0.9.tgz#597214116b4ddc159f4ab095c06653bb94f8dc2e"
integrity sha512-ui50kSnVpteMP405ME4dubuNkDC0Om5ALBo3lBDXD9gKJSYVlhhei9+vHggltScXz7Lzev6xvW2T70KxWfcTCA==
dependencies:
labiba-parser "^0.0.6"
lodash "^4.17.11"
Expand Down
4 changes: 2 additions & 2 deletions labiba-transformer/dist/transformer/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ function language() {
autoComplete: true
}, {
js: 'alert',
la: 'انذر',
snippet: 'انذر',
la: 'انذار',
snippet: 'انذار',
autoComplete: true
}, {
js: 'sound',
Expand Down
2 changes: 1 addition & 1 deletion labiba-transformer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "labiba-transformer",
"version": "0.0.8",
"version": "0.0.9",
"description": "Labiba Transformer",
"author": "Sameh Fakoua <s.fakoua@gmail.com>",
"homepage": "https://github.com/fakoua/labiba",
Expand Down
2 changes: 1 addition & 1 deletion labiba-transformer/src/transformer/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export function language() {
snippet: 'لبيبة',
properties:[
{js: 'ask', la: 'اسأل', snippet: 'اسأل', autoComplete: true},
{js: 'alert', la: 'انذر', snippet: 'انذر', autoComplete: true},
{js: 'alert', la: 'انذار', snippet: 'انذار', autoComplete: true},
{js: 'sound', la: 'نغمة', snippet: 'نغمة(${1:النغمة}, ${2:الوقت})', autoComplete: true},
]
}
Expand Down

0 comments on commit be7a6cd

Please sign in to comment.