Skip to content

Commit 359c747

Browse files
Primate removal: legacy UI deprecation note and usage update (apache#171)
* ui: make the UI simpler, remove references on setting up primate or the word primate Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * ui: remove primate explicit docs, update note on legacy UI deprecation Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * add newline Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * Removing 'primate' Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
1 parent 4931fee commit 359c747

File tree

7 files changed

+134
-396
lines changed

7 files changed

+134
-396
lines changed

source/adminguide/projects.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ feature is enabled in the cloud as described in `“Setting
301301
Up Invitations” <#setting-up-invitations>`_. If the invitations feature is
302302
not turned on, use the procedure in Adding Project Members From the UI.
303303

304-
#. Log in to the CloudStack Primate UI.
304+
#. Log in to the CloudStack UI.
305305

306306
#. In the left navigation, click Projects.
307307

@@ -353,7 +353,7 @@ Accepting a Membership Invitation
353353
If you have received an invitation to join a CloudStack project, and you
354354
want to accept the invitation, follow these steps:
355355

356-
#. Log in to the CloudStack’s Primate UI.
356+
#. Log in to the CloudStack’s UI.
357357

358358
#. In the left navigation, click Projects.
359359

source/adminguide/ui.rst

Lines changed: 115 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ Log In to the UI
2121
CloudStack provides a web-based UI that can be used by both
2222
administrators and end users. The appropriate version of the UI is
2323
displayed depending on the credentials used to log in. The UI is
24-
available in popular browsers including IE7, IE8, IE9, Firefox 3.5+,
25-
Firefox 4, Safari 4, and Safari 5. The URL is: (substitute your own
26-
management server IP address)
24+
available in all modern popular browsers including Chrome, Firefox, Edge and
25+
Safari. The UI uses API auto-discovery to discover APIs allowed for a logged-in
26+
user and creates navigation and views based on that, and requires the following:
27+
28+
- API discovery (listApis) enabled for all roles that must use the UI
29+
- Modern browsers that are `ES5-compliant <https://github.com/vuejs/vue#browser-compatibility>`_
30+
31+
The URL is: (substitute your own management server IP address)
2732

2833
.. parsed-literal::
2934
@@ -65,6 +70,11 @@ the UI can provide a project-oriented view.
6570
Root Administrator's UI Overview
6671
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6772

73+
.. image:: https://raw.githubusercontent.com/apache/cloudstack-primate/master/docs/screenshot-dashboard.png
74+
:width: 800px
75+
:alt: alternate text
76+
:align: left
77+
6878
The CloudStack UI helps the CloudStack administrator provision, view,
6979
and manage the cloud infrastructure, domains, user accounts, projects,
7080
and configuration settings. The first time you start the UI after a
@@ -168,94 +178,121 @@ new, unique value.
168178

169179
#. Type the new password, and click OK.
170180

181+
Basic UI Customization
182+
~~~~~~~~~~~~~~~~~~~~~~
171183

172-
Modifying the UI
173-
----------------
174-
175-
Root Administrators can modify some aspect of the UI, like:
176-
177-
- Changing the keyboard names/labels (in the "Add Instance" wizard only)
178-
- Changing the text and the title in the "About" dialog box
179-
- Changing the Help link
180-
- Changing the application title on the browser tab
181-
- Hiding some columns in the Instance Metrics and Volume Metrics tables/views
182-
183-
This can be done by editing the file "/usr/share/cloudstack-management/webapp/config.js" on your management server(s).
184-
After the file change, you do need to clear your browser cache. Hiding columns in Instance Metrics and Volume Metrics tables/views is only applicable to end users - i.e. those are always visible to Root Administrators.
185-
186-
This is the default config.js content (comments ommitted for brevity):
187-
188-
.. code:: javascript
189-
190-
cloudStackOptions = {
191-
aboutText: "label.app.name", // This is the text shown in the 'About' box
192-
aboutTitle: "label.about.app", // This is the Application 'Title' shown in the 'About' box
193-
docTitle: "label.app.name", // This is the Application 'Title' shown on browser tab.
194-
helpURL: "http://docs.cloudstack.apache.org/", // This is the URL that opens when users click Help
195-
keyboardOptions: {
196-
"us": "label.standard.us.keyboard",
197-
"uk": "label.uk.keyboard",
198-
"fr": "label.french.azerty.keyboard",
199-
"jp": "label.japanese.keyboard",
200-
"sc": "label.simplified.chinese.keyboard"
201-
},
202-
hiddenFields: { // Fields to be hidden only for users in the tables below
203-
"metrics.instances": [], // Options - "name", "state", "ipaddress", "zonename", "cpuused", "memused", "network", "disk"
204-
"metrics.volumes": [] // Options - "name", "state", "vmname", "sizegb", "physicalsize", "utilization", "storagetype", "storage"
205-
}
206-
};
207-
208-
Example of a changed config.js file is given bellow, as well as the apropriate screenshots which reflect (most of) those changes. Make sure that you are logged in as end user account.
209-
210-
.. code:: javascript
211-
212-
cloudStackOptions = {
213-
aboutText: "Custom About text!", // This is the text shown in the 'About' box
214-
aboutTitle: "Custom About Title!", // This is the Application 'Title' shown in the 'About' box
215-
docTitle: "MyCloud", // This is the Application 'Title' shown on browser tab.
216-
helpURL: "http://help.mycloud.com/", // This is the URL that opens when users click Help
217-
keyboardOptions: {
218-
"us": "US",
219-
"uk": "UK",
220-
"fr": "FR",
221-
"jp": "JP",
222-
"sc": "CN"
223-
},
224-
hiddenFields: { // Fields to be hidden only for users in the tables below
225-
"metrics.instances": ["zonename"], // Options - "name", "state", "ipaddress", "zonename", "cpuused", "memused", "network", "disk"
226-
"metrics.volumes": ["utilization"] // Options - "name", "state", "vmname", "sizegb", "physicalsize", "utilization", "storagetype", "storage"
227-
}
228-
};
229-
230-
|about-cloudstack-customized.JPG|
231-
232-
Notice custom title and text
184+
Users can now customize the CloudStack's user interface by means of a configuration file at /usr/share/cloudstack-management/webapp/config.json which can be used to modify the theme, logos, etc. to align to one's requirement.
233185

186+
To change the logo, login banner, error page icon, etc. the following details can be edited in config.json:
234187

235-
|add-instance-keyboards-customized.JPG|
188+
.. parsed-literal::
236189
237-
Notice short keyboard names (based on country code)
190+
"logo": "assets/logo.svg",
191+
"banner": "assets/banner.svg",
192+
"error": {
193+
"404": "assets/404.png",
194+
"403": "assets/403.png",
195+
"500": "assets/500.png"
196+
}
238197
198+
where,
239199

240-
|instance-metrics-customized-view.JPG|
200+
- logo: changes the logo top-left side image.
201+
- banner: changes the login banner image.
202+
- error.404: changes the image of error Page not found.
203+
- error.403: changes the image of error Forbidden.
204+
- error.500: changes the image of error Internal Server Error.
241205

242-
Notice "Zone" column is hidden
206+
Customization of themes is also possible, such as, modifying banner width, general color, etc. This can be done by editing the "theme" section of the config.json file:
243207

208+
.. parsed-literal::
244209
245-
|volume-metrics-customized-view.JPG|
210+
"theme": {
211+
"@logo-background-color": "#ffffff",
212+
"@project-nav-text-color": "#001529",
213+
"@navigation-text-color": "rgba(255, 255, 255, 0.65)",
214+
"@navigation-background-color": "#ffffff",
215+
"@navigation-text-color": "rgba(0, 0, 0, 0.65)",
216+
"@primary-color": "#1890ff",
217+
"@link-color": "#1890ff",
218+
"@link-hover-color": "#40a9ff",
219+
"@loading-color": "#1890ff",
220+
"@processing-color": "#1890ff",
221+
"@success-color": "#52c41a",
222+
"@warning-color": "#faad14",
223+
"@error-color": "#f5222d",
224+
"@font-size-base": "14px",
225+
"@heading-color": "rgba(0, 0, 0, 0.85)",
226+
"@text-color": "rgba(0, 0, 0, 0.65)",
227+
"@text-color-secondary": "rgba(0, 0, 0, 0.45)",
228+
"@disabled-color": "rgba(0, 0, 0, 0.25)",
229+
"@border-color-base": "#d9d9d9",
230+
"@border-radius-base": "4px",
231+
"@box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15)",
232+
"@logo-width": "256px",
233+
"@logo-height": "64px",
234+
"@banner-width": "700px",
235+
"@banner-height": "110px",
236+
"@error-width": "256px",
237+
"@error-height": "256px"
238+
}
239+
240+
where,
241+
242+
- @logo-background-color changes the logo background color.
243+
- @project-nav-background-color changes the navigation menu background color of the project.
244+
- @project-nav-text-color changes the navigation menu background color of the project view.
245+
- @navigation-background-color changes the navigation menu background color.
246+
- @navigation-text-color changes the navigation text color.
247+
- @primary-color: changes the major background color of the page (background button, icon hover, etc).
248+
- @link-color changes the link color.
249+
- @link-hover-color changes the link hover color.
250+
- @loading-color changes the message loading color and page loading bar at the top page.
251+
- @success-color: changes success state color.
252+
- @processing-color: changes processing state color. Exp: progress status.
253+
- @warning-color: changes warning state color.
254+
- @error-color: changes error state color.
255+
- @heading-color: changes table header color.
256+
- @text-color: change in major text color.
257+
- @text-color-secondary: change of secondary text color (breadcrumb icon).
258+
- @disabled-color: disable state color (disabled button, switch, etc).
259+
- @border-color-base: change in major border color.
260+
- @logo-width: change the width of the logo top-left side.
261+
- @logo-height: change the height of the logo top-left side.
262+
- @banner-width: changes the width of the login banner.
263+
- @banner-height: changes the height of the login banner.
264+
- @error-width: changes the width of the error image.
265+
- @error-height: changes the height of the error image.
266+
267+
Some assorted primary theme colours:
268+
269+
- Blue: #1890FF
270+
- Red: #F5222D
271+
- Yellow: #FAAD14
272+
- Cyan: #13C2C2
273+
- Green: #52C41A
274+
- Purple: #722ED1
275+
276+
Advanced Customisation
277+
~~~~~~~~~~~~~~~~~~~~~~
246278

247-
Notice "Utilisation" column is hidden
279+
The advanced UI customisation is possible only by changing JavaScript based config
280+
files which define rules for sections, names, icons, actions and components and by
281+
building the UI from the source available on `github.com/apache/cloudstack
282+
<https://github.com/apache/cloudstack>`_ repository. Advanced customisation may
283+
require some experience in JavaScript and VueJS, a development and customisation
284+
guide in the source repository.
248285

286+
Known Limitations
287+
~~~~~~~~~~~~~~~~~
249288

289+
The following features are no longer supported or available:
250290

291+
- Deployment of a basic zone is not supported. However, existing basic zones will continue to be supported as well as all the actions and views of various resources within the existing basic zone.
292+
- Support for S3 based secondary storage.
293+
- NFS secondary staging storage list/resource view and add/update actions.
294+
- SSL certificate for Guest network LB rule.
295+
- Regions.
251296

252297
.. |change-password.png| image:: /_static/images/change-password.png
253298
:alt: button to change a user's password
254-
.. |volume-metrics-customized-view.JPG| image:: /_static/images/volume-metrics-customized-view.JPG
255-
:alt: Notice missing "Utilisation" column
256-
.. |instance-metrics-customized-view.JPG| image:: /_static/images/instance-metrics-customized-view.JPG
257-
:alt: Notice missing "Zone" column
258-
.. |about-cloudstack-customized.JPG| image:: /_static/images/about-cloudstack-customized.JPG
259-
:alt: Notice custom title and text
260-
.. |add-instance-keyboards-customized.JPG| image:: /_static/images/add-instance-keyboards-customized.JPG
261-
:alt: Notice short keyboard names (based on country code)

source/installguide/index.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ General Installation
4747
management-server/index
4848

4949

50-
.. _primate:
51-
52-
Primate Installation
53-
--------------------
54-
.. toctree::
55-
:maxdepth: 2
56-
57-
primate
58-
59-
6050
.. _configuration:
6151

6252
Configuration

0 commit comments

Comments
 (0)