Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
d757421
Adding new frame drum - duff
sa-fw-an Mar 5, 2025
293185b
update MB v4 link (#4501)
Ubayed-Bin-Sufian Mar 6, 2025
d6fb4f6
Add AGPL-3.0 License Headers to Missing Files (#4488)
Ashrafmuhmed Mar 6, 2025
14c8865
Refactor _() function to improve translation handling and case preser…
Ashrafmuhmed Mar 6, 2025
96287bb
Implement draggable divider for resizing editor and console areas (#4…
alokdangre Mar 8, 2025
2ce0dcf
add instrument in interface (#4503)
Ubayed-Bin-Sufian Mar 8, 2025
c83b96f
test suite for lilypond.js (#4504)
Commanderk3 Mar 8, 2025
d197a73
documentation information change regarding Firefox (#4507)
farhan-momin Mar 8, 2025
bdc813a
Fixing no rendering of Play-Only-Mode (#4494)
justin212407 Mar 10, 2025
cf1be6d
Change the download url for lilypond for linux and windows to point t…
prikshitsingh24 Feb 12, 2025
97bc882
Add link to download lilypond for mac os
prikshitsingh24 Feb 23, 2025
4c29905
Change the doc to contain one link for all os to downlaod lilypond
prikshitsingh24 Mar 5, 2025
49cf03d
add midi export (#4509)
Ubayed-Bin-Sufian Mar 10, 2025
87d099f
test suite for js/Blocks/BooleanBlocks.js (#4517)
omsuneri Mar 11, 2025
e3361b3
Add Urdu Translation (#4524)
AliyanA1 Mar 13, 2025
63a205e
add license header (#4523)
Ubayed-Bin-Sufian Mar 13, 2025
d6254d8
Create FUNDING.yml
pikurasa Mar 12, 2025
c380398
Add the direct GH sponsors page for Sugar Labs
Mar 12, 2025
020d53f
Uncomment the custom section
Mar 12, 2025
e70ea96
Test suite for the js/Blocks/DrumBlocks.js (#4527)
omsuneri Mar 13, 2025
120075b
Update DMP template from its source (#4533)
pikurasa Mar 14, 2025
2121950
internal to external css (#4514)
Commanderk3 Mar 15, 2025
21b0e8b
Replaced actions/checkout@v2 and actions/setup-node@v1 with v3 (#4530)
Anshukumar123975 Mar 15, 2025
f938553
Refactoring ESLint workflow for accuracy and stability (#4519)
omsuneri Mar 15, 2025
f6e66fc
added test for heapblocks.js (#4544)
alokdevx Mar 16, 2025
07aa488
Fix color precedence in dark mode canvas background (#4518)
farhan-momin Mar 16, 2025
31b4d5f
Reset pitch colors (#4551)
falgun143 Mar 20, 2025
4f450b6
midi dialogue box (#4536)
Commanderk3 Mar 20, 2025
8e4a350
Resolving ESLint Issues on the js/ directory and .eslintrc.json for p…
omsuneri Mar 20, 2025
d86c5cb
test suite for js/blocks/ExtrasBlocks.js (#4552)
omsuneri Mar 20, 2025
31a667f
Adding some more points to guide (#4554)
omsuneri Mar 20, 2025
6c60b03
added test to BoxesBlocks.js (#4546)
alokdevx Mar 20, 2025
6992634
added test for ornamentblocks (#4555)
alokdevx Mar 20, 2025
442a9d9
added test to SensorsBlocks.js (#4565)
alokdangre Mar 21, 2025
5a7c10a
remove unused Volo configuration (#4499)
Ubayed-Bin-Sufian Mar 21, 2025
13e53c0
added test to volumeBlocks.js file (#4559)
alokdevx Mar 22, 2025
41e7636
added tests to RhythmBlockPaletteBlocks.js (#4566)
alokdangre Mar 22, 2025
373c995
Solved Multiple StatsWindow instances created when clicking the "Disp…
SujoyBose Mar 22, 2025
f565aaf
fix: correct filename from toolbox.js to toolbar.js in README (#4535)
AliyanA1 Mar 22, 2025
a794fb1
Fixes #4567 ESLint errors on master (#4568)
omsuneri Mar 22, 2025
7a175cb
Fix pitch slider arrow key interaction (#4547)
AnvitaPrasad Mar 22, 2025
4ff97f9
Enhance pixel color detection in SensorsBlocks.js with improved error…
Ashrafmuhmed Mar 22, 2025
7f920b4
Ensure nodes play properly in circular mode. (#4570)
falgun143 Mar 23, 2025
2434216
resolves playback button issue (#4575)
falgun143 Mar 23, 2025
de0d7cc
solves console error due to keyboard shortcut ALT+D (#4580)
vara-prasad-07 Mar 26, 2025
c4743f1
jest test for toolbar.js (#4593)
Commanderk3 Apr 1, 2025
13c7f28
image label updated to ubuntu-latest (#4597)
omsuneri Apr 2, 2025
9f935e4
added test to NumberBlocks.js (#4576)
alokdangre Apr 5, 2025
b1ada06
Fix: Translate 'JavaScript Editor' for all supported languages (#4595)
AnvitaPrasad Apr 5, 2025
51443e1
new strings
Apr 5, 2025
4d06cc9
Catched DOM elements (#4599)
Ajeett01 Apr 5, 2025
5bf4a3b
Added Event Delegation (#4600)
Ajeett01 Apr 5, 2025
035da79
Add frequency (Hz) display to Sampler Widget (#4616)
AnvitaPrasad Apr 13, 2025
3f8c6d7
Timbre UI Fix (#4614)
Commanderk3 Apr 13, 2025
060340e
Complete Portuguese (pt) translation (#4608)
AnvitaPrasad Apr 19, 2025
d6d4ff0
update PT
Apr 19, 2025
69c3104
Add documentation for frequency display in Sampler widget (#4622)
AnvitaPrasad Apr 20, 2025
5b425ac
added tests for ToneBlocks.js file (#4612)
alokdangre Apr 20, 2025
818d497
add description for minified libs (#4624)
Ubayed-Bin-Sufian Apr 23, 2025
aa0e5a7
added test to mediaBlocks.js (#4577)
alokdangre Apr 23, 2025
95d677b
FIX: Timbre (effects) (#4623)
Commanderk3 Apr 23, 2025
9c79b75
Improve test coverage for notation.js (#4628)
AnvitaPrasad Apr 23, 2025
739e80c
Add lang='en' attribute (#4635)
Ubayed-Bin-Sufian Apr 23, 2025
b773fdb
Improve test coverage for background.js && languagebox.js (#4629)
asimchoudhary Apr 23, 2025
a0f92b9
improved test coverage for drumactions.js (#4636)
blenbot Apr 23, 2025
8e7b592
expanded coverage ornamentactions.js (#4639)
blenbot Apr 23, 2025
ef1183f
more test coverage for volumeactions.js (#4640)
blenbot Apr 23, 2025
1d27d0b
fix(test): Improved test coverage (#4631)
mohan-bee Apr 23, 2025
16af61d
fix(add): Improved test coverage for dictactions.js (#4637)
blenbot Apr 23, 2025
adb0714
fix(add):added tests for meteractions.js (#4638)
blenbot Apr 23, 2025
db0ea31
new instrument - mandolin (#4581)
Commanderk3 Apr 24, 2025
df160ce
Resolving Test Failure (#4649)
omsuneri Apr 26, 2025
c9f1752
fix(add): Improved test coverage for pitchactions.js (#4648)
blenbot Apr 26, 2025
910b58b
Improved accessibility: added alt and title to logo image (#4645)
harleenkaur2003 Apr 27, 2025
a08bcdc
play chord in music keyboard (#4563)
Commanderk3 Apr 28, 2025
c348b92
rafactor from html4 to html5 (#4655)
TanmayBansa1 Apr 28, 2025
b73890d
Update Duff sample
sa-fw-an Apr 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 19 additions & 25 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,39 @@
{
"env": {
"es6": true,
"browser": true
"browser": true,
"node": true,
"jest": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "script",
"requireConfigFile": false,
"ecmaFeatures": {
"globalReturn": false
}
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-console": "warn",
"no-console": "off",
"no-mixed-spaces-and-tabs": "warn",
"no-unused-vars": "warn",
"no-use-before-define": "error",
"prefer-const": [
"warn",
{
"destructuring": "any",
"ignoreReadBeforeAssign": true
}
],
"no-undef": "error",
"no-redeclare": [2, {"builtinGlobals": false}],
"no-unused-vars": "off",
"no-use-before-define": "off",
"prefer-const": "off",
"no-undef": "off",
"no-redeclare": "off",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"quotes": ["warn", "double", { "avoidEscape": true }],
"semi": "error",
"max-len": [
"warn",
{
"code": 120,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-duplicate-case": "error",
"no-irregular-whitespace": "warn"
"no-irregular-whitespace": "warn",
"no-prototype-builtins" : "off",
"no-useless-escape" : "off",
"no-inner-declarations" : "off",
"no-constant-assign" : "off",
"no-const-assign" : "off",
"no-dupe-keys" : "off",
"no-useless-catch" : "off"
}
}
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: sugarlabs
custom: ['https://www.every.org/sugar-labs', 'https://www.paypal.com/us/fundraiser/charity/4357440', 'https://mygoodness.benevity.org/community/cause/840-843289298/donate' ]
16 changes: 9 additions & 7 deletions .github/ISSUE_TEMPLATE/DMP_2024.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: DMP 2024 Project Template
description: List a new project for Dedicated Mentoring Program (DMP) 2024
title: "[DMP 2024]: "
labels: ["DMP 2024"]
name: DMP 2025 Project Template
description: List a new project for Dedicated Mentoring Program (DMP) 2025
title: "[DMP 2025]: "
labels: ["DMP 2025"]
body:
- type: textarea
- type: textarea
id: ticket-description
validations:
required: true
attributes:
label: Ticket Contents
description: "Provide a brief description of the feature, including why it is needed and what it will accomplish. E.g., 'This feature aims to create an interactive UI for students to collaborate on assignments in real-time.'"

value: |
## Description
[Provide a brief description of the feature, including why it is needed and what it will accomplish.]

- type: textarea
id: ticket-goals
Expand Down Expand Up @@ -90,6 +91,7 @@ body:
validations:
required: true


- type: dropdown
id: ticket-technical-skills-required
attributes:
Expand Down
47 changes: 18 additions & 29 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,37 @@ on:
branches: [master]

jobs:
build:
lint:
name: Lint updated JavaScript files with ESLint

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Use Node.js
uses: actions/setup-node@v1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 20.x

- name: Get changed files
id: getfile
- name: Get changed JavaScript files
id: get_files
run: |
CHANGED_FILES="$(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | xargs)"
export CHANGED_FILES # the export command will fail if the inner shell expansion failed
echo "files=$CHANGED_FILES" >> $GITHUB_OUTPUT
CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- '*.js')
echo "files<<EOF" >> $GITHUB_ENV
echo "$CHANGED_FILES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

- name: Install ESLint
- name: Install dependencies
run: npm install eslint

- name: Lint changed files using ESLint
- name: Run ESLint on changed files
if: env.files != ''
run: |
for i in ${{ steps.getfile.outputs.files }}
do
if [[ "$i" == "D" ]]
then
ignore=1
elif [[ ( "$i" == "M" ) || ( "$i" == "A" ) || ( "$i" == "R" ) || ( "$i" == "C" ) || ( "$i" == "U" ) ]]
then
ignore=0
fi
echo "file $i $ignore"
if [[ "$i" == *".js" && $ignore == 0 ]]
then
echo "linting $i"
npx eslint $i
fi
done
echo "Linting the following files:"
echo "$files"
echo "$files" | xargs npx eslint
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -34,4 +34,4 @@ jobs:
# Post-run cleanup to remove the build directory after the job finishes
- name: Post-run cleanup
if: always()
run: rm -rf ./build
run: rm -rf ./build
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ the functionality can be accessed by launching the
[index.html](./index.html) file in the browser using
`file:///absolute/path/to/index.html`.

However, doing so, some functionality will be unavailable. On top of
that, some web browsers (e.g., Firefox v68) have restrictions that
prevent Music Blocks from running using `file:///`. Therefore, it is
However, doing so, some functionality will be unavailable. Therefore, it is
best to launch a _local web server_ from the directory of Music
Blocks.

Expand Down Expand Up @@ -209,8 +207,8 @@ develop and maintain this project given its scale. After the core is
built, we'll be porting features from this application to it.

Refer to the repository
[**sugarlabs/musicblocks-2**](https://github.com/sugarlabs/musicblocks-2)
for more information about the new project &mdash; _Music Blocks 2.0_.
[**sugarlabs/musicblocks-v4**](https://github.com/sugarlabs/musicblocks-v4)
for more information about the new project &mdash; _Music Blocks 4.0_.

### Tech Stack

Expand Down
Loading