mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-28 17:20:22 +00:00
Add smalltalk samples
(Issue: https://github.com/github/linguist/issues/3244)
This commit is contained in:
8
samples/Smalltalk/baselineDependency.st
Normal file
8
samples/Smalltalk/baselineDependency.st
Normal file
@@ -0,0 +1,8 @@
|
||||
dependencies
|
||||
neoJSON: spec
|
||||
spec
|
||||
configuration: 'NeoJSON'
|
||||
with: [ spec
|
||||
className: 'ConfigurationOfNeoJSON';
|
||||
version: #stable;
|
||||
repository: 'http://smalltalkhub.com/mc/SvenVanCaekenberghe/Neo/main' ]
|
||||
8
samples/Smalltalk/categories.st
Normal file
8
samples/Smalltalk/categories.st
Normal file
@@ -0,0 +1,8 @@
|
||||
SystemOrganization addCategory: #ChartJs!
|
||||
SystemOrganization addCategory: 'ChartJs-Component'!
|
||||
SystemOrganization addCategory: 'ChartJs-Demo'!
|
||||
SystemOrganization addCategory: 'ChartJs-Exception'!
|
||||
SystemOrganization addCategory: 'ChartJs-Library'!
|
||||
SystemOrganization addCategory: 'ChartJs-Model'!
|
||||
SystemOrganization addCategory: 'ChartJs-Style'!
|
||||
SystemOrganization addCategory: 'ChartJs-Types'!
|
||||
9
samples/Smalltalk/renderSeasideExampleOn..st
Normal file
9
samples/Smalltalk/renderSeasideExampleOn..st
Normal file
@@ -0,0 +1,9 @@
|
||||
rendering
|
||||
renderTitleId: divId on: html
|
||||
^ html div
|
||||
id: #title , divId;
|
||||
class: #aClass;
|
||||
with: [
|
||||
html heading
|
||||
level3;
|
||||
with: self data title ]
|
||||
11
samples/Smalltalk/scriptWithPragma.st
Normal file
11
samples/Smalltalk/scriptWithPragma.st
Normal file
@@ -0,0 +1,11 @@
|
||||
helpers
|
||||
installGitFileTree
|
||||
"GitFileTree is the tool we will use to commit on GitHub."
|
||||
|
||||
<script>
|
||||
Metacello new
|
||||
baseline: 'FileTree';
|
||||
repository:
|
||||
'github://dalehenrich/filetree:pharo' , SystemVersion current dottedMajorMinor
|
||||
, '_dev/repository';
|
||||
load: 'Git'
|
||||
3
samples/Smalltalk/smallMethod.st
Normal file
3
samples/Smalltalk/smallMethod.st
Normal file
@@ -0,0 +1,3 @@
|
||||
ChartJs
|
||||
dataFunction
|
||||
^ 'bars'
|
||||
Reference in New Issue
Block a user